Skip to content

Commit

Permalink
test: 🐛 fix expected results in unit tests
Browse files Browse the repository at this point in the history
  • Loading branch information
cat394 committed Jul 10, 2024
1 parent c6f5e94 commit fb5ae0e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions test/index.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,7 @@ describe("generator function test", () => {
});

it("single param is setted", () => {
assertEquals("/users/alice", link("users/posts", { userid: "alice" }));
assertEquals("/users/alice/posts", link("users/posts", { userid: "alice" }));
});
});

Expand Down Expand Up @@ -139,7 +139,7 @@ describe("generator function test", () => {

it("numeric search param is setted", () => {
assertEquals(
"/products?q=color=red",
"/products?q=size=10",
link("products", null, { size: 10 }),
);
});
Expand Down

0 comments on commit fb5ae0e

Please sign in to comment.