We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent cfe397e commit d351ba9Copy full SHA for d351ba9
test/app.test.ts
@@ -389,7 +389,7 @@ describe("app", () => {
389
});
390
391
it("calls onRequest and onResponse", async () => {
392
- app.use(() => Promise.resolve("Hello World!"));
+ app.use(eventHandler(() => Promise.resolve("Hello World!")));
393
await request.get("/foo");
394
395
expect(onRequest).toHaveBeenCalledTimes(1);
0 commit comments