Skip to content

Commit

Permalink
chore: debug tests
Browse files Browse the repository at this point in the history
  • Loading branch information
gentlementlegen committed Jul 17, 2024
1 parent a58622c commit 8dc95fe
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions tests/configuration.test.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { afterAll, afterEach, beforeAll, describe, it, jest } from "@jest/globals";
import { afterAll, afterEach, beforeAll, describe, expect, it, jest } from "@jest/globals";
import { server } from "./__mocks__/node";

beforeAll(() => server.listen());
Expand Down Expand Up @@ -41,9 +41,8 @@ describe("Configuration tests", () => {
},
}));
const run = (await import("../src/action")).run;
await run();
// await expect(run()).rejects.toThrow(
// "Invalid settings provided:\n/approvalsRequired/collaborator: Expected number to be greater or equal to 1;\n/approvalsRequired/contributor: Expected number to be greater or equal to 1"
// );
await expect(run()).rejects.toThrow(
"Invalid settings provided:\n/approvalsRequired/collaborator: Expected number to be greater or equal to 1;\n/approvalsRequired/contributor: Expected number to be greater or equal to 1"
);
});
});

0 comments on commit 8dc95fe

Please sign in to comment.