diff --git a/scm-ui/src/modules/auth.test.js b/scm-ui/src/modules/auth.test.js index e3b4697ff7..1d7cb5096e 100644 --- a/scm-ui/src/modules/auth.test.js +++ b/scm-ui/src/modules/auth.test.js @@ -179,16 +179,7 @@ describe("auth actions", () => { }); it("should dispatch fetch me unauthorized", () => { - fetchMock.getOnce("/api/v2/me", { - status: 401, - headers: { - "content-type": "application/vnd.scmm-error+json;v=2" - }, - body: { - transactionId: "123", - message: "So nicht Freundchen", - context: {} - }}); + fetchMock.getOnce("/api/v2/me", 401); const expectedActions = [ { type: FETCH_ME_PENDING },