Spaces:
Running
Running
| 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."', | |
| ); | |
| }); | |
| }); | |