diff --git a/extensions/slack/index.test.ts b/extensions/slack/index.test.ts index d8b9bb28e7..dfd9d39397 100644 --- a/extensions/slack/index.test.ts +++ b/extensions/slack/index.test.ts @@ -3,13 +3,14 @@ import entry from "./index.js"; import setupEntry from "./setup-entry.js"; describe("slack bundled entries", () => { - it("loads the channel plugin without importing the broad api barrel", () => { - const plugin = entry.loadChannelPlugin(); - expect(plugin.id).toBe("slack"); + it("declares the channel plugin without importing the broad api barrel", () => { + expect(entry.kind).toBe("bundled-channel-entry"); + expect(entry.id).toBe("slack"); + expect(entry.name).toBe("Slack"); }); - it("loads the setup plugin without importing the broad api barrel", () => { - const plugin = setupEntry.loadSetupPlugin(); - expect(plugin.id).toBe("slack"); + 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"); }); }); diff --git a/extensions/telegram/index.test.ts b/extensions/telegram/index.test.ts index 463ba55593..b7811553c4 100644 --- a/extensions/telegram/index.test.ts +++ b/extensions/telegram/index.test.ts @@ -12,8 +12,8 @@ describe("telegram bundled entries", () => { 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"); + 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"); }); }); diff --git a/extensions/whatsapp/index.test.ts b/extensions/whatsapp/index.test.ts index 1f861347d6..22fd4f4540 100644 --- a/extensions/whatsapp/index.test.ts +++ b/extensions/whatsapp/index.test.ts @@ -3,13 +3,14 @@ import entry from "./index.js"; import setupEntry from "./setup-entry.js"; describe("whatsapp bundled entries", () => { - it("loads the channel plugin without importing the broad api barrel", () => { - const plugin = entry.loadChannelPlugin(); - expect(plugin.id).toBe("whatsapp"); + it("declares the channel plugin without importing the broad api barrel", () => { + expect(entry.kind).toBe("bundled-channel-entry"); + expect(entry.id).toBe("whatsapp"); + expect(entry.name).toBe("WhatsApp"); }); - it("loads the setup plugin without importing the broad api barrel", () => { - const plugin = setupEntry.loadSetupPlugin(); - expect(plugin.id).toBe("whatsapp"); + 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"); }); }); diff --git a/extensions/zalo/index.test.ts b/extensions/zalo/index.test.ts index 26ab9fcf52..65d2a709c3 100644 --- a/extensions/zalo/index.test.ts +++ b/extensions/zalo/index.test.ts @@ -3,13 +3,14 @@ import entry from "./index.js"; import setupEntry from "./setup-entry.js"; describe("zalo bundled entries", () => { - it("loads the channel plugin without a runtime-barrel cycle", () => { - const plugin = entry.loadChannelPlugin(); - expect(plugin.id).toBe("zalo"); + it("declares the channel plugin without a runtime-barrel cycle", () => { + expect(entry.kind).toBe("bundled-channel-entry"); + expect(entry.id).toBe("zalo"); + expect(entry.name).toBe("Zalo"); }); - it("loads the setup plugin without a runtime-barrel cycle", () => { - const plugin = setupEntry.loadSetupPlugin(); - expect(plugin.id).toBe("zalo"); + it("declares the setup plugin without a runtime-barrel cycle", () => { + expect(setupEntry.kind).toBe("bundled-channel-setup-entry"); + expect(typeof setupEntry.loadSetupPlugin).toBe("function"); }); });