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 34e19e5 commit 45e2aebCopy full SHA for 45e2aeb
src/utils/loose-equal.spec.js
@@ -175,19 +175,4 @@ describe('looseEqual', () => {
175
expect(looseEqual(null, false)).toBe(false)
176
expect(looseEqual(undefined, false)).toBe(false)
177
})
178
-
179
- it('compares sparse arrays correctly', () => {
180
- // The following arrays all have a length of 3
181
- // But the first two are "sparse"
182
- const arr1 = []
183
- arr1[2] = true
184
- const arr2 = []
185
- arr2[2] = true
186
- const arr3 = [false, false, true]
187
188
- expect(looseEqual(arr1, arr2)).toBe(true)
189
- expect(looseEqual(arr2, arr1)).toBe(true)
190
- expect(looseEqual(arr1, arr3)).toBe(false)
191
- expect(looseEqual(arr3, arr1)).toBe(false)
192
- })
193
0 commit comments