Fix passing auth reducer tests
[arvados-workbench2.git] / src / store / auth / auth-action.test.ts
index d58c91594e1858d29a562027e03b0e113e1cadec..e5775a493d07f38623c22141744d9b949f0fef96 100644 (file)
@@ -56,6 +56,27 @@ describe('auth-actions', () => {
         expect(store.getState().auth).toEqual({
             apiToken: "token",
             sshKeys: [],
+            sessions: [{
+                "active": true,
+                "baseUrl": undefined,
+                "clusterId": undefined,
+                "email": "test@test.com",
+                "loggedIn": true,
+                "remoteHost": undefined,
+                "status": 2,
+                "token": "token",
+                "username": "John Doe"
+            }, {
+                "active": false,
+                "baseUrl": "",
+                "clusterId": "xc59",
+                "email": "",
+                "loggedIn": false,
+                "remoteHost": "xc59.api.arvados.com",
+                "status": 0,
+                "token": "",
+                "username": ""
+            }],
             user: {
                 email: "test@test.com",
                 firstName: "John",