Skip to content

Commit 0a8c5ce

Browse files
committed
nitpicks
1 parent 4c80f2f commit 0a8c5ce

2 files changed

Lines changed: 4 additions & 5 deletions

File tree

e2e/react-router/basic-file-based/tests/params.spec.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
import { expect, test } from '@playwright/test'
2-
import { useExperimentalNonNestedRoutes } from './utils/useExperimentalNonNestedRoutes'
32
import type { Page } from '@playwright/test'
43

54
test.beforeEach(async ({ page }) => {

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

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -64,10 +64,10 @@ describe('callbacks', () => {
6464
it('runs on navigate from a previous route', async () => {
6565
const onLeave = vi.fn()
6666
const router = setup({ onLeave })
67-
await router.navigate({ to: '/foo/foo' })
67+
await router.navigate({ to: '/foo' })
6868

6969
// Leaving foo to bar
70-
await router.navigate({ to: '/bar/bar' })
70+
await router.navigate({ to: '/bar' })
7171
expect(onLeave).toHaveBeenNthCalledWith(
7272
1,
7373
expect.objectContaining({ id: '/foo/foo' }),
@@ -86,7 +86,7 @@ describe('callbacks', () => {
8686
it('runs on navigate to the same route', async () => {
8787
const onStay = vi.fn()
8888
const router = setup({ onStay })
89-
await router.navigate({ to: '/foo/foo' })
89+
await router.navigate({ to: '/foo' })
9090

9191
// Staying on foo
9292
await router.navigate({ to: '/foo', search: { foo: 'baz' } })
@@ -96,7 +96,7 @@ describe('callbacks', () => {
9696
)
9797

9898
// Staying on foo
99-
await router.navigate({ to: '/foo/foo', search: { foo: 'quux' } })
99+
await router.navigate({ to: '/foo', search: { foo: 'quux' } })
100100
expect(onStay).toHaveBeenNthCalledWith(
101101
2,
102102
expect.objectContaining({ id: '/foo/foo', search: { foo: 'quux' } }),

0 commit comments

Comments
 (0)