#355: fix accounts/actions.test.js

This commit is contained in:
SleepWalker 2019-02-04 23:16:59 +02:00
parent 22ae85c9c6
commit 11f2673ca4

View File

@ -272,7 +272,7 @@ describe('components/accounts/actions', () => {
it('should call logout api method in background', () => it('should call logout api method in background', () =>
revoke(account)(dispatch, getState).then(() => revoke(account)(dispatch, getState).then(() =>
expect(authentication.logout, 'to have a call satisfying', [ expect(authentication.logout, 'to have a call satisfying', [
account account.token
]) ])
) )
); );
@ -323,7 +323,7 @@ describe('components/accounts/actions', () => {
it('should call logout api method in background', () => it('should call logout api method in background', () =>
revoke(account2)(dispatch, getState).then(() => revoke(account2)(dispatch, getState).then(() =>
expect(authentication.logout, 'to have a call satisfying', [ expect(authentication.logout, 'to have a call satisfying', [
account2 account2.token
]) ])
) )
); );
@ -350,8 +350,8 @@ describe('components/accounts/actions', () => {
logoutAll()(dispatch, getState); logoutAll()(dispatch, getState);
expect(authentication.logout, 'to have calls satisfying', [ expect(authentication.logout, 'to have calls satisfying', [
[account], [account.token],
[account2] [account2.token]
]); ]);
}); });
@ -420,8 +420,8 @@ describe('components/accounts/actions', () => {
logoutStrangers()(dispatch, getState); logoutStrangers()(dispatch, getState);
expect(authentication.logout, 'to have calls satisfying', [ expect(authentication.logout, 'to have calls satisfying', [
[foreignAccount], [foreignAccount.token],
[foreignAccount2] [foreignAccount2.token]
]); ]);
}); });
@ -483,8 +483,8 @@ describe('components/accounts/actions', () => {
it('logouts all accounts', () => { it('logouts all accounts', () => {
expect(authentication.logout, 'to have calls satisfying', [ expect(authentication.logout, 'to have calls satisfying', [
[foreignAccount], [foreignAccount.token],
[foreignAccount2], [foreignAccount2.token],
]); ]);
expect(dispatch, 'to have a call satisfying', [ expect(dispatch, 'to have a call satisfying', [