fix(ci): satisfy strict nullish guards · openclaw/openclaw@d4d7fdb
steipete
·
2026-05-31
·
via Recent Commits to openclaw:main
| Original file line number | Diff line number | Diff line change |
|---|
@@ -1015,12 +1015,10 @@ describe("normalizeToolParameters", () => {
|
1015 | 1015 | ["literalEnum", { type: "string", enum: [{ type: "array", items: {} }] }], |
1016 | 1016 | ]), |
1017 | 1017 | }); |
1018 | | -expect( |
1019 | | -Object.hasOwn( |
1020 | | -(normalized.parameters as { properties?: Record<string, unknown> }).properties, |
1021 | | -"__proto__", |
1022 | | -), |
1023 | | -).toBe(true); |
| 1018 | +const properties = (normalized.parameters as { properties?: Record<string, unknown> }) |
| 1019 | +.properties; |
| 1020 | +expect(properties).toBeDefined(); |
| 1021 | +expect(Object.hasOwn(properties ?? {}, "__proto__")).toBe(true); |
1024 | 1022 | }); |
1025 | 1023 | |
1026 | 1024 | it("filters required to match properties when flattening anyOf for Gemini", () => { |
|
此内容由惯性聚合(RSS阅读器)自动聚合整理,仅供阅读参考。 原文来自 — 版权归原作者所有。