test: tighten ui empty form assertions · openclaw/openclaw@3a654fd
shakkernerd
·
2026-05-09
·
via Recent Commits to openclaw:main
| Original file line number | Diff line number | Diff line change |
|---|
@@ -152,7 +152,7 @@ describe("prototype pollution prevention", () => {
|
152 | 152 | it("setPathValue rejects prototype in path", () => { |
153 | 153 | const obj: Record<string, unknown> = {}; |
154 | 154 | setPathValue(obj, ["prototype", "bad"], true); |
155 | | -expect(obj).toEqual({}); |
| 155 | +expect(obj).toStrictEqual({}); |
156 | 156 | }); |
157 | 157 | |
158 | 158 | it("removePathValue rejects __proto__ in path", () => { |
|
此内容由惯性聚合(RSS阅读器)自动聚合整理,仅供阅读参考。 原文来自 — 版权归原作者所有。