test: keep discord and irc entry smokes descriptor-only

This commit is contained in:
Peter Steinberger
2026-04-08 13:55:47 +01:00
parent 675f36d93b
commit 88282f7b23
2 changed files with 14 additions and 12 deletions

View File

@@ -3,13 +3,14 @@ import entry from "./index.js";
import setupEntry from "./setup-entry.js";
describe("discord bundled entries", () => {
it("loads the channel plugin without importing the broad api barrel", () => {
const plugin = entry.loadChannelPlugin();
expect(plugin.id).toBe("discord");
it("declares the channel plugin without importing the broad api barrel", () => {
expect(entry.kind).toBe("bundled-channel-entry");
expect(entry.id).toBe("discord");
expect(entry.name).toBe("Discord");
});
it("loads the setup plugin without importing the broad api barrel", () => {
const plugin = setupEntry.loadSetupPlugin();
expect(plugin.id).toBe("discord");
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");
});
});

View File

@@ -3,13 +3,14 @@ import entry from "./index.js";
import setupEntry from "./setup-entry.js";
describe("irc bundled entries", () => {
it("loads the channel plugin without importing the broad api barrel", () => {
const plugin = entry.loadChannelPlugin();
expect(plugin.id).toBe("irc");
it("declares the channel plugin without importing the broad api barrel", () => {
expect(entry.kind).toBe("bundled-channel-entry");
expect(entry.id).toBe("irc");
expect(entry.name).toBe("IRC");
});
it("loads the setup plugin without importing the broad api barrel", () => {
const plugin = setupEntry.loadSetupPlugin();
expect(plugin.id).toBe("irc");
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");
});
});