mirror of
https://github.com/openclaw/openclaw.git
synced 2026-04-13 18:21:27 +00:00
20 lines
582 B
TypeScript
20 lines
582 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("loads the setup plugin without importing the broad api barrel", () => {
|
|
const plugin = setupEntry.loadSetupPlugin();
|
|
expect(plugin.id).toBe("telegram");
|
|
});
|
|
});
|