summaryrefslogtreecommitdiffhomepage
path: root/test/mocks
diff options
context:
space:
mode:
authorErik Larkö <erik@mullvad.net>2017-11-16 09:32:24 +0100
committerErik Larkö <erik@mullvad.net>2017-11-20 10:54:17 +0100
commitfc28970c6382755d536bf485d81929281e5653bf (patch)
tree9c87bf1d3c3be4e377bd9dbb75416abc779094b0 /test/mocks
parent258eb7a91ef65d3f1692718c5d8a14b2eab12b78 (diff)
downloadmullvadvpn-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.js19
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) => {