use logout link of index resource

This commit is contained in:
Maren Süwer
2018-10-11 08:27:24 +02:00
parent eb65ef1e65
commit 6562071bfe
3 changed files with 12 additions and 8 deletions

View File

@@ -188,7 +188,7 @@ describe("auth actions", () => {
const store = mockStore({});
return store.dispatch(logout()).then(() => {
return store.dispatch(logout("/auth/access_token")).then(() => {
expect(store.getActions()).toEqual(expectedActions);
});
});
@@ -199,7 +199,7 @@ describe("auth actions", () => {
});
const store = mockStore({});
return store.dispatch(logout()).then(() => {
return store.dispatch(logout("/auth/access_token")).then(() => {
const actions = store.getActions();
expect(actions[0].type).toEqual(LOGOUT_PENDING);
expect(actions[1].type).toEqual(LOGOUT_FAILURE);