Skip to content

Commit 86c9b8c

Browse files
committed
rename test as per codeRabbit nitpick
1 parent 878da35 commit 86c9b8c

File tree

1 file changed

+12
-9
lines changed

1 file changed

+12
-9
lines changed

packages/react-router/tests/router.test.tsx

Lines changed: 12 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -809,17 +809,20 @@ describe('encoding: URL path segment', () => {
809809
path: '/path-segment/🚀to%2Fthe%2Fmoon',
810810
url: '/path-segment/%F0%9F%9A%80to%2Fthe%2Fmoon',
811811
},
812-
])('should resolve $input to $output', async ({ input, path, url }) => {
813-
const { router } = createTestRouter({
814-
history: createMemoryHistory({ initialEntries: [input] }),
815-
})
812+
])(
813+
'should resolve $input to path=$path and url=$url',
814+
async ({ input, path, url }) => {
815+
const { router } = createTestRouter({
816+
history: createMemoryHistory({ initialEntries: [input] }),
817+
})
816818

817-
render(<RouterProvider router={router} />)
818-
await act(() => router.load())
819+
render(<RouterProvider router={router} />)
820+
await act(() => router.load())
819821

820-
expect(router.state.location.pathname).toBe(path)
821-
expect(new URL(router.state.location.url).pathname).toBe(url)
822-
})
822+
expect(router.state.location.pathname).toBe(path)
823+
expect(new URL(router.state.location.url).pathname).toBe(url)
824+
},
825+
)
823826
})
824827

825828
describe('router emits events during rendering', () => {

0 commit comments

Comments
 (0)