diff options
| -rw-r--r-- | test/actions.spec.js | 4 | ||||
| -rw-r--r-- | test/mocks/backend.js | 16 |
2 files changed, 10 insertions, 10 deletions
diff --git a/test/actions.spec.js b/test/actions.spec.js index f91a99a1bf..8097de7721 100644 --- a/test/actions.spec.js +++ b/test/actions.spec.js @@ -18,7 +18,7 @@ describe('actions', function() { const backend = mockBackend({ users: { 1: { - paidUntil: '2013-01-01T00:00:00.000Z', + paid_until: '2013-01-01T00:00:00.000Z', }} }); mapBackendEventsToReduxActions(backend, store); @@ -61,7 +61,7 @@ describe('actions', function() { const backend = mockBackend({ users: { '1': { - paidUntil: '2038-01-01T00:00:00.000Z', + paid_until: '2038-01-01T00:00:00.000Z', status: LoginState.ok } }}); diff --git a/test/mocks/backend.js b/test/mocks/backend.js index 3011c8e26b..f665df8ee7 100644 --- a/test/mocks/backend.js +++ b/test/mocks/backend.js @@ -40,18 +40,18 @@ const mockIpc = (backendData) => { return new Promise((resolve, reject) => { switch (action) { - case 'login': - return resolve(backendData.users[data.accountNumber]); - case 'logout': - case 'cancelConnection': + case 'get_account_data': { + const accountNumber = data; + return resolve(backendData.users[accountNumber]); + } + case 'set_account': + case 'set_country': case 'connect': case 'disconnect': return resolve(); - case 'getLocation': - return resolve({}); - case 'getConnectionInfo': - return resolve({}); + case 'event_subscribe': + return resolve(); } reject('Unknown action: ' + action); |
