16159: Passes the token to be expire when calling the logout endpoint.
[arvados-workbench2.git] / src / store / auth / auth-middleware.test.ts
index bcc942e1ee76e85f338ed34bc2db80437715d1ef..1438cab35a121bb9f7f63668a1c1d31906afd864 100644 (file)
@@ -38,7 +38,7 @@ describe("AuthMiddleware", () => {
         const middleware = authMiddleware(services)(store)(next);
         middleware(authActions.LOGOUT({deleteLinkData: false}));
         expect(window.location.assign).toBeCalledWith(
-            `/logout?return_to=${location.protocol}//${location.host}`
+            `/logout?api_token=someToken&return_to=${location.protocol}//${location.host}`
         );
         expect(localStorage.getItem(API_TOKEN_KEY)).toBeFalsy();
     });