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 39ed05e commit 2a93536Copy full SHA for 2a93536
src/json-walk/__tests__/index.spec.ts
@@ -33,9 +33,7 @@ test('can walk through null', () => {
33
walk(value, (node) => {
34
nodes.push(node);
35
});
36
- expect(nodes).toEqual([
37
- null,
38
- ]);
+ expect(nodes).toEqual([null]);
39
40
41
test('can walk empty object', () => {
@@ -44,9 +42,7 @@ test('can walk empty object', () => {
44
42
45
43
46
47
48
- {},
49
+ expect(nodes).toEqual([{}]);
50
51
52
test('can walk empty array', () => {
@@ -55,7 +51,5 @@ test('can walk empty array', () => {
55
56
57
53
58
59
- [],
60
54
+ expect(nodes).toEqual([[]]);
61
0 commit comments