it('should get a login success action.', () =>
    expect(actions.loginSuccess('123', { a: 1 })).toEqual({
      type: types.LOGIN_SUCCESS,
      payload: {
        token: '123',