Fixed unit test

This commit is contained in:
Philipp Czora
2019-02-26 11:30:16 +01:00
parent 3b410ab8c3
commit c67b2c3197

View File

@@ -179,16 +179,7 @@ describe("auth actions", () => {
}); });
it("should dispatch fetch me unauthorized", () => { it("should dispatch fetch me unauthorized", () => {
fetchMock.getOnce("/api/v2/me", { fetchMock.getOnce("/api/v2/me", 401);
status: 401,
headers: {
"content-type": "application/vnd.scmm-error+json;v=2"
},
body: {
transactionId: "123",
message: "So nicht Freundchen",
context: {}
}});
const expectedActions = [ const expectedActions = [
{ type: FETCH_ME_PENDING }, { type: FETCH_ME_PENDING },