Add unit tests

This commit is contained in:
René Pfeuffer
2019-04-12 14:32:17 +02:00
parent 1b60857959
commit e56d6504c0
4 changed files with 81 additions and 11 deletions

View File

@@ -204,10 +204,9 @@ export const logout = (link: string, history: History) => {
})
.then(json => {
if (json && json.logoutRedirect) {
location.href = json.logoutRedirect;
} else {
dispatch(logoutSuccess());
window.location.assign(json.logoutRedirect);
}
dispatch(logoutSuccess());
})
.then(() => {
dispatch(fetchIndexResources());