Skip to content

Commit

Permalink
test: add evetHandler wrapper
Browse files Browse the repository at this point in the history
  • Loading branch information
pi0 committed Aug 2, 2023
1 parent cfe397e commit d351ba9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion test/app.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -389,7 +389,7 @@ describe("app", () => {
});

it("calls onRequest and onResponse", async () => {
app.use(() => Promise.resolve("Hello World!"));
app.use(eventHandler(() => Promise.resolve("Hello World!")));
await request.get("/foo");

expect(onRequest).toHaveBeenCalledTimes(1);
Expand Down

0 comments on commit d351ba9

Please sign in to comment.