Skip to content

Commit

Permalink
test(remix-dev): add failing test for remix-run#1898
Browse files Browse the repository at this point in the history
  • Loading branch information
AndrewLeedham committed Jul 8, 2022
1 parent 2a1b3fb commit 4614930
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions packages/remix-dev/__tests__/defineRoutes-test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -87,4 +87,13 @@ describe("defineRoutes", () => {
}
`);
});

it("allows multiple routes with the same route module", () => {
let routes = defineRoutes((route) => {
route("/user/:id", "routes/index.tsx");
route("/user", "routes/index.tsx");
});

expect(Object.entries(routes)).toHaveLength(2);
});
});

0 comments on commit 4614930

Please sign in to comment.