Skip to content

Commit 2fd30b6

Browse files
committed
Fix tests
1 parent 0f6db9c commit 2fd30b6

File tree

1 file changed

+3
-16
lines changed

1 file changed

+3
-16
lines changed

packages/router/__tests__/ssr-test.ts

Lines changed: 3 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -1649,11 +1649,11 @@ describe("ssr", () => {
16491649

16501650
describe("router dataStrategy", () => {
16511651
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"), {
16531655
unstable_dataStrategy: urlDataStrategy,
16541656
});
1655-
1656-
let context = await query(createRequest("/custom"));
16571657
expect(context).toMatchObject({
16581658
actionData: null,
16591659
loaderData: {
@@ -2678,18 +2678,5 @@ describe("ssr", () => {
26782678

26792679
/* eslint-enable jest/no-conditional-expect */
26802680
});
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-
});
26942681
});
26952682
});

0 commit comments

Comments
 (0)