17 lines
576 B
TypeScript
17 lines
576 B
TypeScript
import { describe, expect, it } from "vitest";
|
|
|
|
import { getChannelPluginCatalogEntry, listChannelPluginCatalogEntries } from "./catalog.js";
|
|
|
|
describe("channel plugin catalog", () => {
|
|
it("includes Microsoft Teams", () => {
|
|
const entry = getChannelPluginCatalogEntry("msteams");
|
|
expect(entry?.install.npmSpec).toBe("@clawdbot/msteams");
|
|
expect(entry?.meta.aliases).toContain("teams");
|
|
});
|
|
|
|
it("lists plugin catalog entries", () => {
|
|
const ids = listChannelPluginCatalogEntries().map((entry) => entry.id);
|
|
expect(ids).toContain("msteams");
|
|
});
|
|
});
|