| 1 | import { describe, expect, it } from "vitest"; |
| 2 | import { faqSourceHref } from "./faq-source"; |
| 3 | |
| 4 | describe("FAQ source links", () => { |
| 5 | it("links issue references and repository files to verifiable sources", () => { |
| 6 | expect(faqSourceHref("#4674")).toBe( |
| 7 | "https://github.com/Hmbown/CodeWhale/issues/4674", |
| 8 | ); |
| 9 | expect(faqSourceHref("README.md")).toBe( |
| 10 | "https://github.com/Hmbown/CodeWhale/blob/main/README.md", |
| 11 | ); |
| 12 | expect(faqSourceHref("docs/PROVIDERS.md")).toBe( |
| 13 | "https://github.com/Hmbown/CodeWhale/blob/main/docs/PROVIDERS.md", |
| 14 | ); |
| 15 | expect(faqSourceHref("release notes")).toBeNull(); |
| 16 | }); |
| 17 | }); |
| 18 |