Skip to content

Commit 9727d30

Browse files
committed
Update tests
1 parent eff840c commit 9727d30

File tree

1 file changed

+5
-12
lines changed

1 file changed

+5
-12
lines changed

packages/router/__tests__/matcher/skirtleCorrectnessChecks.spec.ts

+5-12
Original file line numberDiff line numberDiff line change
@@ -970,14 +970,12 @@ describe('Matcher: extra correctness tests', () => {
970970
expect(
971971
matcher.resolve({ path: '/user/1/2' }, currentLocation)
972972
).toMatchObject({
973-
// name: 'user3', // Routes with trailing slashes get higher scores. Unclear why.
974-
name: 'user2',
973+
name: 'user3', // Routes with trailing slashes get higher scores. Unclear why.
975974
})
976975
expect(
977976
matcher.resolve({ path: '/user/1/2/' }, currentLocation)
978977
).toMatchObject({
979-
// name: 'user3', // Ditto.
980-
name: 'user2',
978+
name: 'user3', // Ditto.
981979
})
982980
})
983981

@@ -1038,16 +1036,12 @@ describe('Matcher: extra correctness tests', () => {
10381036
expect(
10391037
matcher.resolve({ path: '/user/1/2' }, currentLocation)
10401038
).toMatchObject({
1041-
// name: 'user3',
1042-
// name: 'user4', // The static perf branch switches this
1043-
name: 'user2',
1039+
name: 'user3',
10441040
})
10451041
expect(
10461042
matcher.resolve({ path: '/user/1/2/' }, currentLocation)
10471043
).toMatchObject({
1048-
// name: 'user3',
1049-
// name: 'user4', // The static perf branch switches this
1050-
name: 'user2',
1044+
name: 'user3',
10511045
})
10521046
})
10531047

@@ -1663,8 +1657,7 @@ describe('Matcher: extra correctness tests', () => {
16631657
name: undefined,
16641658
})
16651659
expect(matcher.resolve({ path: '/a/b' }, currentLocation)).toMatchObject({
1666-
// name: 'a', // TODO: This currently fails on main
1667-
name: undefined,
1660+
name: 'a',
16681661
})
16691662
})
16701663

0 commit comments

Comments
 (0)