- const state = reducer(initialState, authActions.INIT({user, token: "token"}));
- expect(state).toEqual({
- apiToken: "token",
- user
- });
- });
-
- it('should save api token', () => {
- const initialState = undefined;
-
- const state = reducer(initialState, authActions.SAVE_API_TOKEN("token"));