Decouple pure and private accounts actions from async actions.

This commit is contained in:
SleepWalker
2017-01-27 08:29:20 +02:00
parent bf1cfda59c
commit acf912d979
5 changed files with 93 additions and 78 deletions

View File

@@ -3,18 +3,19 @@ import sinon from 'sinon';
import { routeActions } from 'react-router-redux';
import accounts from 'services/api/accounts';
import authentication from 'services/api/authentication';
import {
authenticate,
revoke,
add, ADD,
activate, ACTIVATE,
remove,
reset,
logoutAll,
logoutStrangers
} from 'components/accounts/actions';
import {
add, ADD,
activate, ACTIVATE,
remove,
reset
} from 'components/accounts/actions/pure-actions';
import { SET_LOCALE } from 'components/i18n/actions';
import { updateUser, setUser } from 'components/user/actions';

View File

@@ -2,9 +2,12 @@ import expect from 'unexpected';
import accounts from 'components/accounts/reducer';
import {
updateToken, add, remove, activate, reset,
ADD, REMOVE, ACTIVATE, UPDATE_TOKEN, RESET
updateToken
} from 'components/accounts/actions';
import {
add, remove, activate, reset,
ADD, REMOVE, ACTIVATE, UPDATE_TOKEN, RESET
} from 'components/accounts/actions/pure-actions';
const account = {
id: 1,