Spracherkennung für: .ts vermutete Sprache: Unknown {[0] [0] [0]} [Methode: Schwerpunktbildung, einfache Gewichte, sechs Dimensionen]
import { describe, expect, it } from "vitest";
import {
hasBundledChannelConfiguredState,
listBundledChannelIdsWithConfiguredState,
} from "./configured-state.js";
describe("bundled channel configured-state metadata", () => {
it("lists the shipped metadata-first configured-state channels", () => {
expect(listBundledChannelIdsWithConfiguredState()).toEqual(
expect.arrayContaining(["discord", "irc", "slack", "telegram"]),
);
});
it("resolves Discord, Slack, Telegram, and IRC env probes without full plugin loads", () => {
expect(
hasBundledChannelConfiguredState({
channelId: "discord",
cfg: {},
env: { DISCORD_BOT_TOKEN: "token" },
}),
).toBe(true);
expect(
hasBundledChannelConfiguredState({
channelId: "slack",
cfg: {},
env: { SLACK_BOT_TOKEN: "xoxb-test" },
}),
).toBe(true);
expect(
hasBundledChannelConfiguredState({
channelId: "telegram",
cfg: {},
env: { TELEGRAM_BOT_TOKEN: "token" },
}),
).toBe(true);
expect(
hasBundledChannelConfiguredState({
channelId: "irc",
cfg: {},
env: { IRC_HOST: "irc.example.com", IRC_NICK: "openclaw" },
}),
).toBe(true);
});
});
¤ Dauer der Verarbeitung: 0.10 Sekunden
(vorverarbeitet am 2026-04-27)
¤
*© Formatika GbR, Deutschland