Skip to content

Commit

Permalink
Update packages/remix-dev/__tests__/routesConvention-test.ts
Browse files Browse the repository at this point in the history
Co-authored-by: Pedro Cattori <[email protected]>
  • Loading branch information
lordofthecactus and pcattori authored Dec 6, 2022
1 parent a356be4 commit 85801f1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/remix-dev/__tests__/routesConvention-test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,7 @@ describe("createRoutePath", () => {
expect(() => createRoutePath("($)")).toThrow("Splat");
});

it("throws errors on optional index with brackets routes", () => {
it("throws errors on optional index without brackets routes", () => {
expect(() => createRoutePath("(nested)/(index)")).toThrow("index");
expect(() => createRoutePath("(flat).(index)")).toThrow("index");
expect(() => createRoutePath("(index)")).toThrow("index");
Expand Down

0 comments on commit 85801f1

Please sign in to comment.