test: dedupe empty allowlist mock read · openclaw/openclaw@856b3ef
steipete
·
2026-05-13
·
via Recent Commits to openclaw:main
File tree
src/commands/doctor/shared
| Original file line number | Diff line number | Diff line change |
|---|
@@ -83,7 +83,7 @@ describe("doctor empty allowlist policy scan", () => {
|
83 | 83 | |
84 | 84 | expect(warnings).toEqual(["extra:channels.signal"]); |
85 | 85 | expect(extraWarningsForAccount).toHaveBeenCalledTimes(1); |
86 | | -const [warningOptions] = extraWarningsForAccount.mock.calls.at(0) ?? []; |
| 86 | +const [warningOptions] = extraWarningsForAccount.mock.calls[0] ?? []; |
87 | 87 | expect(warningOptions?.prefix).toBe("channels.signal"); |
88 | 88 | }); |
89 | 89 | }); |
此内容由惯性聚合(RSS阅读器)自动聚合整理,仅供阅读参考。 原文来自 — 版权归原作者所有。