We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 597c374 commit 3627c09Copy full SHA for 3627c09
tests/basic.js
@@ -55,3 +55,20 @@ test("replace object with other value", () => {
55
]
56
);
57
});
58
+
59
+test("equal null protype objects", () => {
60
+ assert.deepStrictEqual(diff(Object.create(null), Object.create(null)), []);
61
+});
62
63
+test("unequal null protype objects", () => {
64
+ const obj1 = Object.create(null);
65
+ const obj2 = Object.create(null);
66
+ obj2.test = true;
67
+ assert.deepStrictEqual(diff(obj1, obj2), [
68
+ {
69
+ type: "CREATE",
70
+ path: ["test"],
71
+ value: true,
72
+ },
73
+ ]);
74
0 commit comments