Spaces:
Running
Running
File size: 699 Bytes
837e3ac | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 | import { describe, expect, it } from "vitest";
import { buildPackageQuestionPrompt } from "./package-chat-context";
describe("buildPackageQuestionPrompt", () => {
it("builds a package-scoped ask prompt around a quoted excerpt", () => {
expect(
buildPackageQuestionPrompt({
packageRef: "SRS",
label: "objective",
excerpt:
"Translate CRS into traceable system-level requirements, components, interfaces, specifications, and verification methods.",
}),
).toBe(
'@SRS ask Explain this objective:\n"Translate CRS into traceable system-level requirements, components, interfaces, specifications, and verification methods."',
);
});
});
|