diff options
| author | Erik Larkö <erik@mullvad.net> | 2017-11-16 09:32:24 +0100 |
|---|---|---|
| committer | Erik Larkö <erik@mullvad.net> | 2017-11-20 10:54:17 +0100 |
| commit | fc28970c6382755d536bf485d81929281e5653bf (patch) | |
| tree | 9c87bf1d3c3be4e377bd9dbb75416abc779094b0 /test/mocks | |
| parent | 258eb7a91ef65d3f1692718c5d8a14b2eab12b78 (diff) | |
| download | mullvadvpn-fc28970c6382755d536bf485d81929281e5653bf.tar.xz mullvadvpn-fc28970c6382755d536bf485d81929281e5653bf.zip | |
Always connect to the server set in the settings
Diffstat (limited to 'test/mocks')
| -rw-r--r-- | test/mocks/redux.js | 19 |
1 files changed, 0 insertions, 19 deletions
diff --git a/test/mocks/redux.js b/test/mocks/redux.js index 71dafc7f1f..5f0562c035 100644 --- a/test/mocks/redux.js +++ b/test/mocks/redux.js @@ -1,27 +1,8 @@ import configureMockStore from 'redux-mock-store'; import thunk from 'redux-thunk'; -import { defaultServer } from '../../app/config'; const middlewares = [ thunk ]; export const mockStore = configureMockStore(middlewares); -export const mockState = () => { - return { - account: { - accountToken: null, - status: 'none', - error: null - }, - connection: { - status: 'disconnected', - serverAddress: null, - clientIp: null - }, - settings: { - autoSecure: false, - preferredServer: defaultServer - } - }; -}; export const filterMinorActions = (actions) => { return actions.filter((action) => { |
