mirror of
https://github.com/openclaw/openclaw.git
synced 2026-04-12 01:31:08 +00:00
test: keep bundled channel entry smokes descriptor-only
This commit is contained in:
@@ -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");
|
||||
});
|
||||
});
|
||||
|
||||
@@ -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");
|
||||
});
|
||||
});
|
||||
|
||||
@@ -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");
|
||||
});
|
||||
});
|
||||
|
||||
@@ -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");
|
||||
});
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user