test: clarify secrets warning assertion · openclaw/openclaw@ba675d8
steipete
·
2026-05-08
·
via Recent Commits to openclaw:main
| Original file line number | Diff line number | Diff line change |
|---|
@@ -75,8 +75,8 @@ function collectAcpxConfigAssignments(config: OpenClawConfig): ResolverContext {
|
75 | 75 | function expectInactiveAcpxConfig(config: OpenClawConfig): void { |
76 | 76 | const context = collectAcpxConfigAssignments(config); |
77 | 77 | expect(context.assignments).toHaveLength(0); |
78 | | -expect(context.warnings.some((w) => w.code === "SECRETS_REF_IGNORED_INACTIVE_SURFACE")).toBe( |
79 | | -true, |
| 78 | +expect(context.warnings.map((warning) => warning.code)).toContain( |
| 79 | +"SECRETS_REF_IGNORED_INACTIVE_SURFACE", |
80 | 80 | ); |
81 | 81 | } |
82 | 82 | |
|
此内容由惯性聚合(RSS阅读器)自动聚合整理,仅供阅读参考。 原文来自 — 版权归原作者所有。