Files
openclaw/extensions/telegram/index.test.ts
2026-04-08 13:47:49 +01:00

20 lines
625 B
TypeScript

import { beforeEach, describe, expect, it, vi } from "vitest";
import entry from "./index.js";
import setupEntry from "./setup-entry.js";
describe("telegram bundled entries", () => {
beforeEach(() => {
vi.useRealTimers();
});
it("declares the channel entry without importing the broad api barrel", () => {
expect(entry.id).toBe("telegram");
expect(entry.name).toBe("Telegram");
});
it("declares the setup plugin without importing the broad api barrel", () => {
expect(setupEntry.kind).toBe("bundled-channel-setup-entry");
expect(typeof setupEntry.loadSetupPlugin).toBe("function");
});
});