Co-authored-by: maria-rcks <[email protected]> Co-authored-by: t3-code[bot] <269035359+t3-code[bot]@users.noreply.github.com>
18 lines
532 B
TypeScript
18 lines
532 B
TypeScript
import { describe, expect, it } from "vite-plus/test";
|
|
|
|
import { matchesSlashSkillQuery } from "./composerSlashSkillSearch";
|
|
|
|
const browserSkill = {
|
|
name: "browser",
|
|
path: "/skills/browser/SKILL.md",
|
|
enabled: true,
|
|
shortDescription: "Open and control the in-app browser",
|
|
};
|
|
|
|
describe("matchesSlashSkillQuery", () => {
|
|
it("matches the rendered skill prefix", () => {
|
|
expect(matchesSlashSkillQuery(browserSkill, "skill")).toBe(true);
|
|
expect(matchesSlashSkillQuery(browserSkill, "skill:brow")).toBe(true);
|
|
});
|
|
});
|