File tree Expand file tree Collapse file tree 1 file changed +3
-16
lines changed
packages/router/__tests__ Expand file tree Collapse file tree 1 file changed +3
-16
lines changed Original file line number Diff line number Diff line change @@ -1649,11 +1649,11 @@ describe("ssr", () => {
1649
1649
1650
1650
describe ( "router dataStrategy" , ( ) => {
1651
1651
it ( "should support document load navigations with custom dataStrategy" , async ( ) => {
1652
- let { query } = createStaticHandler ( SSR_ROUTES , {
1652
+ let { query } = createStaticHandler ( SSR_ROUTES ) ;
1653
+
1654
+ let context = await query ( createRequest ( "/custom" ) , {
1653
1655
unstable_dataStrategy : urlDataStrategy ,
1654
1656
} ) ;
1655
-
1656
- let context = await query ( createRequest ( "/custom" ) ) ;
1657
1657
expect ( context ) . toMatchObject ( {
1658
1658
actionData : null ,
1659
1659
loaderData : {
@@ -2678,18 +2678,5 @@ describe("ssr", () => {
2678
2678
2679
2679
/* eslint-enable jest/no-conditional-expect */
2680
2680
} ) ;
2681
-
2682
- describe ( "router dataStrategy" , ( ) => {
2683
- it ( "should match routes automatically if no routeId is provided" , async ( ) => {
2684
- let { queryRoute } = createStaticHandler ( SSR_ROUTES , {
2685
- unstable_dataStrategy : urlDataStrategy ,
2686
- } ) ;
2687
- let data ;
2688
-
2689
- data = await queryRoute ( createRequest ( "/custom" ) ) ;
2690
- expect ( data ) . toBeInstanceOf ( URLSearchParams ) ;
2691
- expect ( ( data as URLSearchParams ) . get ( "foo" ) ) . toBe ( "bar" ) ;
2692
- } ) ;
2693
- } ) ;
2694
2681
} ) ;
2695
2682
} ) ;
You can’t perform that action at this time.
0 commit comments