mirror of
https://github.com/openclaw/openclaw.git
synced 2026-05-14 16:30:43 +00:00
test: tighten ui empty form assertions
This commit is contained in:
@@ -400,7 +400,7 @@ describe("resetConfigPendingChanges", () => {
|
||||
resetConfigPendingChanges(state);
|
||||
|
||||
expect(state.configFormDirty).toBe(false);
|
||||
expect(state.configForm).toEqual({});
|
||||
expect(state.configForm).toStrictEqual({});
|
||||
expect(state.configRaw).toBe("");
|
||||
});
|
||||
});
|
||||
|
||||
@@ -152,7 +152,7 @@ describe("prototype pollution prevention", () => {
|
||||
it("setPathValue rejects prototype in path", () => {
|
||||
const obj: Record<string, unknown> = {};
|
||||
setPathValue(obj, ["prototype", "bad"], true);
|
||||
expect(obj).toEqual({});
|
||||
expect(obj).toStrictEqual({});
|
||||
});
|
||||
|
||||
it("removePathValue rejects __proto__ in path", () => {
|
||||
|
||||
Reference in New Issue
Block a user