X-Git-Url: https://git.arvados.org/arvados-workbench2.git/blobdiff_plain/25216cc7acedc987c26a159f0b640210c0ef101e..3def82c401e28a430b222bee86ede13158165976:/src/store/auth/auth-middleware.test.ts diff --git a/src/store/auth/auth-middleware.test.ts b/src/store/auth/auth-middleware.test.ts index 9ded9e67..5a0364eb 100644 --- a/src/store/auth/auth-middleware.test.ts +++ b/src/store/auth/auth-middleware.test.ts @@ -36,10 +36,10 @@ describe("AuthMiddleware", () => { window.location.assign = jest.fn(); const next = jest.fn(); const middleware = authMiddleware(services)(store)(next); - middleware(authActions.LOGOUT({deleteLinkData: false})); + middleware(authActions.LOGOUT({deleteLinkData: false, preservePath: false})); expect(window.location.assign).toBeCalledWith( `/logout?api_token=someToken&return_to=${location.protocol}//${location.host}` ); expect(localStorage.getItem(API_TOKEN_KEY)).toBeFalsy(); }); -}); \ No newline at end of file +});