lastName: "Doe",
uuid: "uuid",
ownerUuid: "ownerUuid",
- isAdmin: true
+ identityUrl: "identityUrl",
+ prefs: {},
+ isAdmin: false
};
const state = reducer(initialState, authActions.INIT({ user, token: "token" }));
expect(state).toEqual({
apiToken: "token",
user,
- sshKeys: []
+ sshKeys: [],
+ sessions: []
});
});
expect(state).toEqual({
apiToken: "token",
user: undefined,
- sshKeys: []
+ sshKeys: [],
+ sessions: []
});
});
lastName: "Doe",
uuid: "uuid",
ownerUuid: "ownerUuid",
- isAdmin: true
+ identityUrl: "identityUrl",
+ prefs: {},
+ isAdmin: false
};
const state = reducer(initialState, authActions.USER_DETAILS_SUCCESS(user));
expect(state).toEqual({
apiToken: undefined,
sshKeys: [],
+ sessions: [],
user: {
email: "test@test.com",
firstName: "John",
lastName: "Doe",
uuid: "uuid",
ownerUuid: "ownerUuid",
- isAdmin: true
+ identityUrl: "identityUrl",
+ prefs: {},
+ isAdmin: false
}
});
});