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", () => {
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 },