Skip to content

Commit b248312

Browse files
committed
remove comments
1 parent fc864f8 commit b248312

1 file changed

Lines changed: 0 additions & 14 deletions

File tree

packages/router-core/tests/utils.test.ts

Lines changed: 0 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -35,9 +35,6 @@ describe('replaceEqualDeep', () => {
3535
const obj1 = { a: 1, [propertyKey]: 2 }
3636
const obj2 = { a: 1, [propertyKey]: 3 }
3737
const result = replaceEqualDeep(obj1, obj2)
38-
// without this PR:
39-
// expect(result).toBe(obj1)
40-
// with this PR:
4138
expect(result).toStrictEqual(obj2)
4239
})
4340

@@ -46,9 +43,6 @@ describe('replaceEqualDeep', () => {
4643
const obj1 = { a: 1, [propertyKey]: 2 }
4744
const obj2 = { a: 3, [propertyKey]: 2 }
4845
const result = replaceEqualDeep(obj1, obj2)
49-
// without this PR:
50-
// expect(result).toStrictEqual({ a: 3 })
51-
// with this PR:
5246
expect(result).toStrictEqual(obj2)
5347
})
5448
})
@@ -60,10 +54,6 @@ describe('replaceEqualDeep', () => {
6054
const obj2: { a: number; b?: number } = { a: 1 }
6155
Object.defineProperty(obj2, 'b', { enumerable: false, value: 3 })
6256
const result = replaceEqualDeep(obj1, obj2)
63-
// without this PR:
64-
// expect(result).toBe(obj1)
65-
// expect(result.b).toBe(2)
66-
// with this PR:
6757
expect(result).toBe(obj2)
6858
})
6959

@@ -73,10 +63,6 @@ describe('replaceEqualDeep', () => {
7363
const obj2: { a: number; b?: number } = { a: 3 }
7464
Object.defineProperty(obj2, 'b', { enumerable: false, value: 2 })
7565
const result = replaceEqualDeep(obj1, obj2)
76-
// without this PR:
77-
// expect(result).toStrictEqual({ a: 3 })
78-
// expect(result.b).toBe(undefined)
79-
// with this PR:
8066
expect(result).toBe(obj2)
8167
})
8268
})

0 commit comments

Comments
 (0)