Skip to content

Commit

Permalink
Fix type error
Browse files Browse the repository at this point in the history
  • Loading branch information
blakeembrey committed Jul 13, 2024
1 parent ea3edad commit f816224
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/index.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3047,7 +3047,7 @@ describe("path-to-regexp", () => {
const toPath = pathToRegexp.compile("{/:foo}+");

expect(() => {
toPath({ foo: [1, "a"] });
toPath({ foo: [1, "a"] as any });
}).toThrow(new TypeError('Expected "foo/0" to be a string'));
});

Expand Down

0 comments on commit f816224

Please sign in to comment.