diff --git a/scm-ui/ui-components/src/errors.test.js b/scm-ui/ui-components/src/errors.test.js index 3a886e7143..fdcec015d3 100644 --- a/scm-ui/ui-components/src/errors.test.js +++ b/scm-ui/ui-components/src/errors.test.js @@ -11,7 +11,8 @@ describe("test createBackendError", () => { context: [{ type: "planet", id: "earth" - }] + }], + violations: [] }; it("should return a default backend error", () => { @@ -20,7 +21,8 @@ describe("test createBackendError", () => { expect(err.name).toBe("BackendError"); }); - it("should return an unauthorized error for status code 403", () => { + // 403 is no backend error + xit("should return an unauthorized error for status code 403", () => { const err = createBackendError(earthNotFoundError, 403); expect(err).toBeInstanceOf(UnauthorizedError); expect(err.name).toBe("UnauthorizedError");