mirror of
https://github.com/elyby/accounts-frontend.git
synced 2025-05-31 14:11:58 +05:30
#365: Redirect user to login page, when token can not be refreshed. Further improvement of auth errors handling
This commit is contained in:
@@ -35,7 +35,7 @@ describe('Accounts reducer', () => {
|
||||
describe(ACTIVATE, () => {
|
||||
it('sets active account', () => {
|
||||
expect(accounts(initial, activate(account)), 'to satisfy', {
|
||||
active: account
|
||||
active: account.id
|
||||
});
|
||||
});
|
||||
});
|
||||
@@ -108,14 +108,14 @@ describe('Accounts reducer', () => {
|
||||
const newToken = 'newToken';
|
||||
|
||||
expect(accounts(
|
||||
{active: account, available: [account]},
|
||||
{active: account.id, available: [account]},
|
||||
updateToken(newToken)
|
||||
), 'to satisfy', {
|
||||
active: {
|
||||
active: account.id,
|
||||
available: [{
|
||||
...account,
|
||||
token: newToken
|
||||
},
|
||||
available: [account]
|
||||
}]
|
||||
});
|
||||
});
|
||||
});
|
||||
|
Reference in New Issue
Block a user