refactor(discord): drop unused setup account lister · openclaw/openclaw@05e70bd
vincentkoc
·
2026-06-19
·
via Recent Commits to openclaw:main
| Original file line number | Diff line number | Diff line change |
|---|
@@ -2,27 +2,11 @@
|
2 | 2 | import { describe, expect, it } from "vitest"; |
3 | 3 | import { |
4 | 4 | inspectDiscordSetupAccount, |
5 | | -listDiscordSetupAccountIds, |
6 | 5 | resolveDefaultDiscordSetupAccountId, |
7 | 6 | resolveDiscordSetupAccountConfig, |
8 | 7 | } from "./setup-account-state.js"; |
9 | 8 | |
10 | 9 | describe("discord setup account state", () => { |
11 | | -it("lists normalized setup account ids plus the implicit default account", () => { |
12 | | -expect( |
13 | | -listDiscordSetupAccountIds({ |
14 | | -channels: { |
15 | | -discord: { |
16 | | -accounts: { |
17 | | -Work: { token: "work-token" }, |
18 | | -alerts: { token: "alerts-token" }, |
19 | | -}, |
20 | | -}, |
21 | | -}, |
22 | | -}), |
23 | | -).toEqual(["alerts", "default", "work"]); |
24 | | -}); |
25 | | - |
26 | 10 | it("resolves setup account config when account key casing differs from normalized id", () => { |
27 | 11 | const resolved = resolveDiscordSetupAccountConfig({ |
28 | 12 | cfg: { |
|
此内容由惯性聚合(RSS阅读器)自动聚合整理,仅供阅读参考。 原文来自 — 版权归原作者所有。