Skip to content

Commit 1276208

Browse files
committed
one more test for HEAD in queryRoute
1 parent 8434506 commit 1276208

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

packages/router/__tests__/router-test.ts

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10291,6 +10291,14 @@ describe("a router", () => {
1029110291
expect(data).toBe("CHILD LOADER");
1029210292
});
1029310293

10294+
it("should support HEAD requests", async () => {
10295+
let { queryRoute } = createStaticHandler(SSR_ROUTES);
10296+
let data = await queryRoute(
10297+
createRequest("/parent", { method: "HEAD" })
10298+
);
10299+
expect(data).toBe("PARENT LOADER");
10300+
});
10301+
1029410302
it("should support singular route load navigations (primitives)", async () => {
1029510303
let { queryRoute } = createStaticHandler(SSR_ROUTES);
1029610304
let data;

0 commit comments

Comments
 (0)