Skip to content

Commit 2ab9bad

Browse files
committed
Remove unused ts-expect-error directives
1 parent 2c87a07 commit 2ab9bad

File tree

1 file changed

+0
-2
lines changed

1 file changed

+0
-2
lines changed

packages/react-router/__tests__/generatePath-test.tsx

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -45,10 +45,8 @@ describe("generatePath", () => {
4545
).toBe("/courses/foo*");
4646
});
4747
it("handles a 0 parameter", () => {
48-
// @ts-expect-error
4948
// incorrect usage but worked in 6.3.0 so keep it to avoid the regression
5049
expect(generatePath("/courses/:id", { id: 0 })).toBe("/courses/0");
51-
// @ts-expect-error
5250
// incorrect usage but worked in 6.3.0 so keep it to avoid the regression
5351
expect(generatePath("/courses/*", { "*": 0 })).toBe("/courses/0");
5452
});

0 commit comments

Comments
 (0)