Skip to content

Commit

Permalink
fix(tests): move webhooks middleware to the first handler used by exp…
Browse files Browse the repository at this point in the history
…ress
  • Loading branch information
wolfy1339 committed May 9, 2021
1 parent 6c5df5c commit 2c3cf2f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion test/integration/node-middleware.test.ts
Expand Up @@ -363,8 +363,8 @@ describe("createNodeMiddleware(webhooks)", () => {
secret: "mySecret",
});

app.all("/foo", (_request: any, response: any) => response.end("ok\n"));
app.use(createNodeMiddleware(webhooks));
app.all("/foo", (_request: any, response: any) => response.end("ok\n"));

const server = app.listen();

Expand Down

0 comments on commit 2c3cf2f

Please sign in to comment.