test: tighten ui empty form assertions

This commit is contained in:
Shakker
2026-05-09 04:19:21 +01:00
parent 068bbf0a17
commit 3a654fd5eb
2 changed files with 2 additions and 2 deletions

View File

@@ -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("");
});
});

View File

@@ -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", () => {