Skip to content

Commit

Permalink
fix: remove broken test
Browse files Browse the repository at this point in the history
  • Loading branch information
0x4007 committed Oct 10, 2024
1 parent 6ffff17 commit 472e929
Showing 1 changed file with 0 additions and 19 deletions.
19 changes: 0 additions & 19 deletions tests/main.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -72,25 +72,6 @@ describe("Worker tests", () => {
consoleSpy.mockReset();
});

it("Should start a worker", async () => {
const req = new Request("http://localhost:8080", {
headers: {
"x-github-event": issueOpened,
"x-github-delivery": "1",
"x-hub-signature-256": "123456",
},
});
const res = await worker.fetch(req, {
ENVIRONMENT: "production",
APP_WEBHOOK_SECRET: "webhook-secret",
APP_ID: "app-id",
APP_PRIVATE_KEY: "private-key",
PLUGIN_CHAIN_STATE: {} as KVNamespace,
});
expect(await res.text()).toEqual("ok\n");
expect(res.status).toEqual(200);
});

describe("Configuration tests", () => {
it("Should generate a default configuration when no repo is defined", async () => {
const cfg = await getConfig({
Expand Down

0 comments on commit 472e929

Please sign in to comment.