diff --git a/test/challenges-platform/services/submissions-service.test.ts b/test/challenges-platform/services/submissions-service.test.ts index 735d5a4..9953965 100644 --- a/test/challenges-platform/services/submissions-service.test.ts +++ b/test/challenges-platform/services/submissions-service.test.ts @@ -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();