File tree Expand file tree Collapse file tree 1 file changed +12
-9
lines changed
packages/react-router/tests Expand file tree Collapse file tree 1 file changed +12
-9
lines changed Original file line number Diff line number Diff 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
825828describe ( 'router emits events during rendering' , ( ) => {
You can’t perform that action at this time.
0 commit comments