Skip to content

Commit

Permalink
bug fix
Browse files Browse the repository at this point in the history
  • Loading branch information
AJaccP committed Jun 14, 2024
1 parent 9d1a6c7 commit d08143d
Showing 1 changed file with 0 additions and 19 deletions.
19 changes: 0 additions & 19 deletions test/challenges-platform/services/submissions-service.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -74,25 +74,6 @@ describe("SubmissionService", () => {
expect(result.val.toString()).toBe("Error: Failed to find challenge");
});
});
describe("when challenge is deleted", () => {
it("returns an error", async () => {
const factory = await challengeFactory();
// Delete the challenge
const challenge = await ChallengesService.destroy(factory.uuid);
if (!challenge.ok)
fail("Expected challenge to be Ok, something went really wrong");

const participant = await participantFactory();

const result = await SubmissionService.create(
challenge.val.uuid,
participant.uuid,
);

expect(result.err).toBe(true);
expect(result.val.toString()).toBe("Error: Challenge is deleted");
});
});
describe("when participant does not exist", () => {
it("returns an error", async () => {
const challenge = await challengeFactory();
Expand Down

0 comments on commit d08143d

Please sign in to comment.