Fixed unit test

This commit is contained in:
Philipp Czora
2019-02-25 15:09:28 +01:00
parent a4d78e6e60
commit bbde074e19
3 changed files with 10 additions and 7 deletions

View File

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