Skip to content

Commit a7f499e

Browse files
committed
Reverted traversal tests
1 parent bcd56d0 commit a7f499e

File tree

1 file changed

+3
-7
lines changed

1 file changed

+3
-7
lines changed

src/tests/legacy/compare.test.ts

+3-7
Original file line numberDiff line numberDiff line change
@@ -97,10 +97,7 @@ describe('Path comparisons', () => {
9797

9898
expect(comparePaths(obj1, obj2)).toStrictEqual([
9999
['name'],
100-
['tags'],
101-
['deep'],
102100
['deep', 'test'],
103-
['tags', '1'],
104101
['tags', '1', 'name']
105102
]);
106103
});
@@ -130,7 +127,7 @@ describe('Path comparisons', () => {
130127
scoops: 1
131128
};
132129

133-
expect(comparePaths(obj1, obj2)).toStrictEqual([['flavours'], ['flavours', '0']]);
130+
expect(comparePaths(obj1, obj2)).toStrictEqual([['flavours', '0']]);
134131
});
135132

136133
test('Paths with different array values', () => {
@@ -152,7 +149,6 @@ describe('Path comparisons', () => {
152149
};
153150

154151
expect(comparePaths(obj1, obj2)).toStrictEqual([
155-
['flavours'],
156152
['flavours', '0'],
157153
['flavours', '1']
158154
]);
@@ -181,8 +177,8 @@ describe('Path comparisons', () => {
181177
images: []
182178
};
183179

184-
expect(comparePaths(obj1, obj2)).toStrictEqual([['images'], ['images', '0']]);
185-
expect(comparePaths(obj2, obj1)).toStrictEqual([['images'], ['images', '0']]);
180+
expect(comparePaths(obj1, obj2)).toStrictEqual([['images', '0']]);
181+
expect(comparePaths(obj2, obj1)).toStrictEqual([['images', '0']]);
186182
});
187183
});
188184

0 commit comments

Comments
 (0)