mirror of
https://github.com/openclaw/openclaw.git
synced 2026-05-06 13:30:42 +00:00
test(extensions): dedupe bundled entry smoke tests
This commit is contained in:
@@ -1,4 +1,5 @@
|
||||
import { beforeEach, describe, expect, it, vi } from "vitest";
|
||||
import { beforeEach, describe, vi } from "vitest";
|
||||
import { assertBundledChannelEntries } from "../../test/helpers/bundled-channel-entry.ts";
|
||||
import entry from "./index.js";
|
||||
import setupEntry from "./setup-entry.js";
|
||||
|
||||
@@ -7,13 +8,11 @@ describe("telegram bundled entries", () => {
|
||||
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");
|
||||
assertBundledChannelEntries({
|
||||
entry,
|
||||
expectedId: "telegram",
|
||||
expectedName: "Telegram",
|
||||
setupEntry,
|
||||
channelMessage: "declares the channel entry without importing the broad api barrel",
|
||||
});
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user