Skip to content

Commit 0617758

Browse files
committed
Add href() test for period in page url
1 parent f22c996 commit 0617758

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

packages/react-router/__tests__/href-test.ts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,4 +26,8 @@ describe("href", () => {
2626
`Path '/a/:b' requires param 'b' but it was not provided`
2727
);
2828
});
29+
30+
it("works with periods", () => {
31+
expect(href("/a/:b.zip", { b: "hello" })).toBe("/a/hello.zip");
32+
})
2933
});

0 commit comments

Comments
 (0)