diff options
| author | Erik Larkö <erik@mullvad.net> | 2017-07-28 08:26:07 +0200 |
|---|---|---|
| committer | Erik Larkö <erik@mullvad.net> | 2017-08-08 09:30:57 +0200 |
| commit | 490061c472765ea68feb9450e12a506019ea44b4 (patch) | |
| tree | e753fa4cfefb8e0a5a3152e7a6282daaa31285ae /test | |
| parent | 7d03193239188cab3b1a94e685da1ef94bdbc2d5 (diff) | |
| download | mullvadvpn-490061c472765ea68feb9450e12a506019ea44b4.tar.xz mullvadvpn-490061c472765ea68feb9450e12a506019ea44b4.zip | |
Remove generic account action
Diffstat (limited to 'test')
| -rw-r--r-- | test/reducers.spec.js | 15 |
1 files changed, 0 insertions, 15 deletions
diff --git a/test/reducers.spec.js b/test/reducers.spec.js index 23a8e91f89..236497a057 100644 --- a/test/reducers.spec.js +++ b/test/reducers.spec.js @@ -1,28 +1,13 @@ // @flow import { expect } from 'chai'; -import accountReducer from '../app/redux/account/reducers'; import connectionReducer from '../app/redux/connection/reducers'; import settingsReducer from '../app/redux/settings/reducers'; import { defaultServer } from '../app/config'; -import { BackendError } from '../app/lib/backend'; describe('reducers', () => { const previousState: any = {}; - it('should handle USER_LOGIN_CHANGE', () => { - const action = { - type: 'LOGIN_CHANGE', - newData: { - accountNumber: '1111', - status: 'failed', - error: new BackendError('INVALID_ACCOUNT') - } - }; - const test = Object.assign({}, action.newData); - expect(accountReducer(previousState, action)).to.deep.equal(test); - }); - it('should handle CONNECTION_CHANGE', () => { const action = { type: 'CONNECTION_CHANGE', |
