Skip to content

Commit

Permalink
test: add tests for new logic
Browse files Browse the repository at this point in the history
  • Loading branch information
IgnisDa committed Nov 27, 2023
1 parent 7de5de7 commit a1ffd37
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions packages/remix-routes/src/__tests__/index.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,9 @@ test("$path + undefined queries", () => {
expect($path("/posts", { order: undefined, filter: "draft" })).toBe(
"/posts?filter=draft"
);
expect($path("/posts", { order: undefined, isDraft: false })).toBe(
"/posts?isDraft=false"
);
});

test("$path + array query", () => {
Expand Down

0 comments on commit a1ffd37

Please sign in to comment.