|
1 | | -import { |
2 | | - deepEqual, |
3 | | - replaceEqualDeep, |
4 | | - deepIncludes, |
5 | | - isPlainObject, |
6 | | -} from '../utils' |
| 1 | +import { replaceEqualDeep, deepIncludes, isPlainObject } from '../utils' |
7 | 2 | import { setConsole, queryCache } from '..' |
8 | 3 | import { queryKey } from '../../react/tests/utils' |
9 | 4 |
|
@@ -66,26 +61,6 @@ describe('core/utils', () => { |
66 | 61 | }) |
67 | 62 | }) |
68 | 63 |
|
69 | | - describe('deepEqual', () => { |
70 | | - it('should return `true` for equal objects', () => { |
71 | | - const a = { a: { b: 'b' }, c: 'c', d: [{ d: 'd ' }] } |
72 | | - const b = { a: { b: 'b' }, c: 'c', d: [{ d: 'd ' }] } |
73 | | - expect(deepEqual(a, b)).toEqual(true) |
74 | | - }) |
75 | | - |
76 | | - it('should return `false` for non equal objects', () => { |
77 | | - const a = { a: { b: 'b' }, c: 'c' } |
78 | | - const b = { a: { b: 'c' }, c: 'c' } |
79 | | - expect(deepEqual(a, b)).toEqual(false) |
80 | | - }) |
81 | | - |
82 | | - it('return `false` for equal dates', () => { |
83 | | - const date1 = new Date(2020, 3, 1) |
84 | | - const date2 = new Date(2020, 3, 1) |
85 | | - expect(deepEqual(date1, date2)).toEqual(false) |
86 | | - }) |
87 | | - }) |
88 | | - |
89 | 64 | describe('replaceEqualDeep', () => { |
90 | 65 | it('should return the previous value when the next value is an equal primitive', () => { |
91 | 66 | expect(replaceEqualDeep(1, 1)).toBe(1) |
|
0 commit comments