Skip to content

Commit

Permalink
test: Drop redundant tests
Browse files Browse the repository at this point in the history
  • Loading branch information
DafyddLlyr committed Oct 9, 2023
1 parent 76783ec commit d00704f
Showing 1 changed file with 0 additions and 18 deletions.
18 changes: 0 additions & 18 deletions api.planx.uk/tests/serverErrorHandler.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -30,20 +30,6 @@ describe("bad requests", () => {
await get("/pay/wrong/1").expect(400);
});

test(`app.get("/hasura")`, async () => {
await get("/hasura").expect(500);
});

test(`app.get("/me")`, async () => {
await get("/me")
.expect(401)
.then((response) => {
expect(response.body).toEqual({
error: "No authorization token was found",
});
});
});

test(`app.get("/gis")`, async () => {
await get("/gis").expect(400);
});
Expand All @@ -58,10 +44,6 @@ describe("bad requests", () => {
});
});

test(`app.get("/throw-error")`, async () => {
await get("/throw-error").expect(500);
});

test(`app.post("/flows/:flowId/publish")`, async () => {
await post("/flows/WRONG/publish").expect(401);
});
Expand Down

0 comments on commit d00704f

Please sign in to comment.