Skip to content
Source
Sign inSign up
pingdotgg/t3code
Open History to see the last commit

composerSlashSkillSearch.test.ts

17 lines532 Bytes

1import { describe, expect, it } from "vite-plus/test";
2​
3import { matchesSlashSkillQuery } from "./composerSlashSkillSearch";
4​
5const browserSkill = {
6 name: "browser",
7 path: "/skills/browser/SKILL.md",
8 enabled: true,
9 shortDescription: "Open and control the in-app browser",
10};
11​
12describe("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});