summaryrefslogtreecommitdiffhomepage
path: root/test
diff options
context:
space:
mode:
authorErik Larkö <erik@mullvad.net>2017-06-30 10:19:37 +0200
committerErik Larkö <erik@mullvad.net>2017-07-03 12:41:57 +0200
commit104778a6ebc33a4e7caeac40917fb7e29377b552 (patch)
treec07bc5fb92bbfbf28bb9481e0003b36e0981d035 /test
parent1bb1bdbe31da5c23e4cb2b414a8756c645049998 (diff)
downloadmullvadvpn-104778a6ebc33a4e7caeac40917fb7e29377b552.tar.xz
mullvadvpn-104778a6ebc33a4e7caeac40917fb7e29377b552.zip
Rename account.account -> account.accountNumber
Diffstat (limited to 'test')
-rw-r--r--test/actions.spec.js10
-rw-r--r--test/mocks/redux.js2
2 files changed, 6 insertions, 6 deletions
diff --git a/test/actions.spec.js b/test/actions.spec.js
index 683927de86..af98cd83a9 100644
--- a/test/actions.spec.js
+++ b/test/actions.spec.js
@@ -13,7 +13,7 @@ describe('actions', function() {
it('should login', (done) => {
const expectedActions = [
- { type: 'USER_LOGIN_CHANGE', payload: { status: 'connecting', error: null, account: '1'} },
+ { type: 'USER_LOGIN_CHANGE', payload: { status: 'connecting', error: null, accountNumber: '1'} },
{ type: 'USER_LOGIN_CHANGE', payload: { paidUntil: '2013-01-01T00:00:00.000Z', status: 'ok', error: undefined } }
];
const store = mockStore(mockState());
@@ -39,7 +39,7 @@ describe('actions', function() {
it('should logout', (done) => {
const expectedActions = [
- { type: 'USER_LOGIN_CHANGE', payload: { account: '', paidUntil: null, status: 'none', error: null } },
+ { type: 'USER_LOGIN_CHANGE', payload: { accountNumber: '', paidUntil: null, status: 'none', error: null } },
];
const store = mockStore(mockState());
@@ -97,7 +97,7 @@ describe('actions', function() {
let state = Object.assign(mockState(), {
account: {
- account: '3333234567890',
+ accountNumber: '3333234567890',
paidUntil: '2038-01-01T00:00:00.000Z',
status: 'ok'
},
@@ -123,13 +123,13 @@ describe('actions', function() {
it('should disconnect from VPN server on logout', (done) => {
const expectedActions = [
- { type: 'USER_LOGIN_CHANGE', payload: { account: '', paidUntil: null, status: 'none', error: null } },
+ { type: 'USER_LOGIN_CHANGE', payload: { accountNumber: '', paidUntil: null, status: 'none', error: null } },
{ type: 'CONNECTION_CHANGE', payload: { serverAddress: null, status: 'disconnected' } }
];
let state = Object.assign(mockState(), {
account: {
- account: '3333234567890',
+ accountNumber: '3333234567890',
paidUntil: '2038-01-01T00:00:00.000Z',
status: 'ok'
},
diff --git a/test/mocks/redux.js b/test/mocks/redux.js
index d120eafec1..070c76c9b2 100644
--- a/test/mocks/redux.js
+++ b/test/mocks/redux.js
@@ -11,7 +11,7 @@ export const mockStore = configureMockStore(middlewares);
export const mockState = () => {
return {
account: {
- account: null,
+ accountNumber: null,
status: 'none',
error: null
},