test: clarify config schema child assertion · openclaw/openclaw@94ceddc
steipete
·
2026-05-08
·
via Recent Commits to openclaw:main
| Original file line number | Diff line number | Diff line change |
|---|
@@ -475,7 +475,7 @@ describe("config schema", () => {
|
475 | 475 | const lookup = lookupConfigSchema(baseSchema, "gateway.auth"); |
476 | 476 | expect(lookup?.path).toBe("gateway.auth"); |
477 | 477 | expect(lookup?.hintPath).toBe("gateway.auth"); |
478 | | -expect(lookup?.children.some((child) => child.key === "token")).toBe(true); |
| 478 | +expect(lookup?.children.map((child) => child.key)).toContain("token"); |
479 | 479 | const tokenChild = lookup?.children.find((child) => child.key === "token"); |
480 | 480 | expect(tokenChild?.path).toBe("gateway.auth.token"); |
481 | 481 | expect(tokenChild?.hint?.sensitive).toBe(true); |
|
此内容由惯性聚合(RSS阅读器)自动聚合整理,仅供阅读参考。 原文来自 — 版权归原作者所有。