mirror of
https://github.com/openclaw/openclaw.git
synced 2026-04-12 17:51:22 +00:00
20 lines
625 B
TypeScript
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");
|
|
});
|
|
});
|