Skip to content

Open-source Grok Bot alternative for named AI teammates. Local-first desktop, web, and mobile clients with per-bot tools, instructions, and memory. Independent fork of T3 Code.

532 B
Raw Blame
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);
  });
});