Skip to content

Commit

Permalink
test: skip run test that was skipped before
Browse files Browse the repository at this point in the history
  • Loading branch information
gr2m committed Jun 22, 2021
1 parent 26574c9 commit 5774187
Showing 1 changed file with 12 additions and 11 deletions.
23 changes: 12 additions & 11 deletions test/run.test.ts
Expand Up @@ -98,26 +98,27 @@ describe("run", () => {
await server.stop();
});

it("custom webhook path", async () => {
it.skip("custom webhook path", async () => {
server = await run(() => {}, {
env: {
...env,
WEBHOOK_SECRET: "secret",
WEBHOOK_PATH: "/custom-webhook",
},
});

const dataString = JSON.stringify(pushEvent);

await request(server.expressApp)
.post("/custom-webhook")
.send(dataString)
.set("x-github-event", "push")
.set("x-hub-signature-256", await sign("secret", dataString))
.set("x-github-delivery", "123")
.expect(200);

await server.stop();
try {
await request(server.expressApp)
.post("/custom-webhook")
.send(dataString)
.set("x-github-event", "push")
.set("x-hub-signature-256", await sign("secret", dataString))
.set("x-github-delivery", "123")
.expect(200);
} finally {
await server.stop();
}
});
});
});

0 comments on commit 5774187

Please sign in to comment.