From 5bfbd48fa0ae64381cfe6cf2d398e90b1a1ea51f Mon Sep 17 00:00:00 2001 From: Danilo Tuler Date: Thu, 18 Jul 2024 14:45:00 -0300 Subject: [PATCH] Fix router test --- packages/router/__tests__/index.test.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/router/__tests__/index.test.ts b/packages/router/__tests__/index.test.ts index 074a354..6df2dab 100644 --- a/packages/router/__tests__/index.test.ts +++ b/packages/router/__tests__/index.test.ts @@ -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"),