test: clarify channels status error assertion · openclaw/openclaw@d42ae25
steipete
·
2026-05-08
·
via Recent Commits to openclaw:main
| Original file line number | Diff line number | Diff line change |
|---|
@@ -224,7 +224,9 @@ describe("channelsStatusCommand SecretRef fallback flow", () => {
|
224 | 224 | |
225 | 225 | await channelsStatusCommand({ probe: false }, runtime as never); |
226 | 226 | |
227 | | -expect(errors.some((line) => line.includes("Gateway not reachable"))).toBe(true); |
| 227 | +expect(errors).toEqual( |
| 228 | +expect.arrayContaining([expect.stringContaining("Gateway not reachable")]), |
| 229 | +); |
228 | 230 | expect(mocks.resolveCommandConfigWithSecrets).toHaveBeenCalledWith( |
229 | 231 | expect.objectContaining({ |
230 | 232 | commandName: "channels status", |
|
此内容由惯性聚合(RSS阅读器)自动聚合整理,仅供阅读参考。 原文来自 — 版权归原作者所有。