Skip to content

Commit d351ba9

Browse files
committed
test: add evetHandler wrapper
1 parent cfe397e commit d351ba9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

test/app.test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -389,7 +389,7 @@ describe("app", () => {
389389
});
390390

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

395395
expect(onRequest).toHaveBeenCalledTimes(1);

0 commit comments

Comments
 (0)