19715: Add preserve url location flag to logout action - set to true for autologout
[arvados-workbench2.git] / src / store / auth / auth-middleware.test.ts
index 9ded9e674ec02ddb8a0202e64d84276e4a6980da..5a0364ebf9000162ef7544dccd0607420ba2b290 100644 (file)
@@ -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
+});