use list/byNames in user state, merged heads

This commit is contained in:
Philipp Czora
2018-07-25 13:57:24 +02:00
parent fe0b7ea986
commit 7b921da174
4 changed files with 50 additions and 64 deletions

View File

@@ -153,8 +153,6 @@ describe("auth actions", () => {
status: 400
});
const expectedActions = [{ type: LOGIN_REQUEST }, { type: LOGIN_FAILURE }];
const store = mockStore({});
return store.dispatch(login("tricia", "secret123")).then(() => {
const actions = store.getActions();
@@ -244,11 +242,6 @@ describe("auth actions", () => {
status: 500
});
const expectedActions = [
{ type: LOGOUT_REQUEST },
{ type: LOGOUT_FAILURE }
];
const store = mockStore({});
return store.dispatch(logout()).then(() => {
const actions = store.getActions();