Skip to content

Commit

Permalink
Added test for 405
Browse files Browse the repository at this point in the history
  • Loading branch information
jholleran committed Aug 15, 2024
1 parent 8ae8c44 commit bbda5e7
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion e2e/browser/test/e2e.playwright.ts
Original file line number Diff line number Diff line change
Expand Up @@ -154,7 +154,7 @@ test("405 problem details error", async ({ page, auth }) => {

await expectProblemDetails(
page,
"406",
"405",
"Method Not Allowed",
"The server application intentionally responded with an HTTP error response status.",
);
Expand Down
2 changes: 1 addition & 1 deletion e2e/node/error.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -194,7 +194,7 @@ describe(`End-to-end error description test for ${ENV.environment}`, () => {
);
expect(error).toBeInstanceOf(ForbiddenError);
expect(error.message).toBe("Some error message");
expect(error.problemDetails.status).toBe(406);
expect(error.problemDetails.status).toBe(405);
expect(error.problemDetails.title).toBe("Method Not Found");
expect(error.problemDetails.detail).toBeDefined();
expect(error.problemDetails.instance).toBeDefined();
Expand Down

0 comments on commit bbda5e7

Please sign in to comment.