diff options
| author | Erik Larkö <erik@mullvad.net> | 2017-07-28 10:20:07 +0200 |
|---|---|---|
| committer | Erik Larkö <erik@mullvad.net> | 2017-08-08 14:05:07 +0200 |
| commit | 2346c28fd37c371aa759aa24ad16722951a7561e (patch) | |
| tree | e98bb11611da548d9c94e3d8fb6aa8f06867538c /test | |
| parent | 696c6b0d3a3f33925f35f7fe3939f246c64c44f9 (diff) | |
| download | mullvadvpn-2346c28fd37c371aa759aa24ad16722951a7561e.tar.xz mullvadvpn-2346c28fd37c371aa759aa24ad16722951a7561e.zip | |
Add ONLINE and OFFLINE actions and remove generic connection action
Diffstat (limited to 'test')
| -rw-r--r-- | test/reducers.spec.js | 14 |
1 files changed, 0 insertions, 14 deletions
diff --git a/test/reducers.spec.js b/test/reducers.spec.js index 236497a057..3b759c4e9b 100644 --- a/test/reducers.spec.js +++ b/test/reducers.spec.js @@ -1,26 +1,12 @@ // @flow import { expect } from 'chai'; -import connectionReducer from '../app/redux/connection/reducers'; import settingsReducer from '../app/redux/settings/reducers'; import { defaultServer } from '../app/config'; describe('reducers', () => { const previousState: any = {}; - it('should handle CONNECTION_CHANGE', () => { - const action = { - type: 'CONNECTION_CHANGE', - newData: { - status: 'connected', - serverAddress: '2.1.1.2', - clientIp: '2.1.1.1' - } - }; - const test = Object.assign({}, action.newData); - expect(connectionReducer(previousState, action)).to.deep.equal(test); - }); - it('should handle SETTINGS_UPDATE', () => { const action = { type: 'UPDATE_SETTINGS', |
