Skip to content

Commit

Permalink
push
Browse files Browse the repository at this point in the history
  • Loading branch information
marliessophie committed Jun 19, 2024
1 parent ace68cd commit 82df500
Showing 1 changed file with 0 additions and 21 deletions.
21 changes: 0 additions & 21 deletions web/src/__tests__/score-configs.servertest.ts
Original file line number Diff line number Diff line change
Expand Up @@ -120,25 +120,4 @@ describe("/api/public/score-configs API Endpoint", () => {
updatedAt: "2024-05-11T00:00:00.000Z",
});
});

it("should return 500 when hitting corrupted score config", async () => {
const configId = "corrupted-config-id";

await prisma.scoreConfig.create({
data: {
...configThree[0],
id: configId,
categories: "invalid-categories",
},
});

const getScoreConfig = await makeAPICall<{
message: string;
}>("GET", `/api/public/score-configs/${configId}`);

expect(getScoreConfig.status).toBe(500);
expect(getScoreConfig.body).toMatchObject({
message: "Internal Server Error",
});
});
});

0 comments on commit 82df500

Please sign in to comment.