Skip to content

Commit

Permalink
Fix router test
Browse files Browse the repository at this point in the history
  • Loading branch information
tuler committed Jul 18, 2024
1 parent 6a37a83 commit 5bfbd48
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/router/__tests__/index.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ describe("Router", () => {
});

test("simple route", async () => {
router.add(/ping/, (a, b) => "pong");
router.add("ping", (a, b) => "pong");
await router.handler({ payload: stringToHex("ping") });
expect(app.createReport).toHaveBeenCalledWith({
payload: stringToHex("pong"),
Expand Down

0 comments on commit 5bfbd48

Please sign in to comment.