import { describe, expect, it } from "vitest";
import { parseSlashInvocation } from "../../src/feishu/slashCommands.js";

describe("slash command parser", () => {
  it("parses a slash invocation without resolving it", () => {
    expect(parseSlashInvocation("/project")).toEqual({ name: "project", args: [] });
    expect(parseSlashInvocation("/usage project")).toEqual({ name: "usage", args: ["project"] });
    expect(parseSlashInvocation("写教案")).toBeNull();
  });

});
