





















@@ -109,8 +109,9 @@ describe("listBundledChannelCatalogEntries", () => {
109109110110const entries = listBundledChannelCatalogEntries();
111111112-const ids = entries.map((entry) => entry.id);
113-expect(ids).toEqual(expect.arrayContaining(["imessage", "telegram"]));
112+const ids = new Set(entries.map((entry) => entry.id));
113+expect(ids.has("imessage")).toBe(true);
114+expect(ids.has("telegram")).toBe(true);
114115const telegram = entries.find((entry) => entry.id === "telegram");
115116expect(telegram?.channel.docsPath).toBe("/channels/telegram");
116117expect(telegram?.channel.label).toBe("Telegram");
@@ -142,7 +143,9 @@ describe("listBundledChannelCatalogEntries", () => {
142143useBundledPluginsDir(extensionsRoot);
143144144145const entries = listBundledChannelCatalogEntries();
145-expect(entries.map((entry) => entry.id)).toEqual(expect.arrayContaining(["qqbot", "telegram"]));
146+const ids = new Set(entries.map((entry) => entry.id));
147+expect(ids.has("qqbot")).toBe(true);
148+expect(ids.has("telegram")).toBe(true);
146149});
147150148151it("falls back to dist/channel-catalog.json when the resolver returns undefined", () => {
此内容由惯性聚合(RSS阅读器)自动聚合整理,仅供阅读参考。 原文来自 — 版权归原作者所有。