First Release of Claw3D (#11)
Co-authored-by: iamlukethedev <iamlukethedev@users.noreply.github.com>
This commit is contained in:
@@ -0,0 +1,19 @@
|
||||
import { describe, expect, it } from "vitest";
|
||||
|
||||
import { buildAgentInstruction } from "@/lib/text/message-extract";
|
||||
|
||||
describe("buildAgentInstruction", () => {
|
||||
it("returns trimmed message for normal prompts", () => {
|
||||
const message = buildAgentInstruction({
|
||||
message: " Ship it ",
|
||||
});
|
||||
expect(message).toBe("Ship it");
|
||||
});
|
||||
|
||||
it("returns command messages untouched", () => {
|
||||
const message = buildAgentInstruction({
|
||||
message: "/help",
|
||||
});
|
||||
expect(message).toBe("/help");
|
||||
});
|
||||
});
|
||||
Reference in New Issue
Block a user