| 1 | import { describe, expect, it } from "vite-plus/test"; |
| 2 | |
| 3 | import { matchesSlashSkillQuery } from "./composerSlashSkillSearch"; |
| 4 | |
| 5 | const browserSkill = { |
| 6 | name: "browser", |
| 7 | path: "/skills/browser/SKILL.md", |
| 8 | enabled: true, |
| 9 | shortDescription: "Open and control the in-app browser", |
| 10 | }; |
| 11 | |
| 12 | describe("matchesSlashSkillQuery", () => { |
| 13 | it("matches the rendered skill prefix", () => { |
| 14 | expect(matchesSlashSkillQuery(browserSkill, "skill")).toBe(true); |
| 15 | expect(matchesSlashSkillQuery(browserSkill, "skill:brow")).toBe(true); |
| 16 | }); |
| 17 | }); |