Files
t3code/apps/mobile/src/features/threads/composerSlashSkillSearch.test.ts
T
e723501227 feat(composer): list skills with slash commands (#7737)
Co-authored-by: maria-rcks <[email protected]>
Co-authored-by: t3-code[bot] <269035359+t3-code[bot]@users.noreply.github.com>
2026-08-20 21:27:36 -04:00

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);
});
});