summaryrefslogtreecommitdiffhomepage
path: root/test
diff options
context:
space:
mode:
authorAndrej Mihajlov <and@mullvad.net>2017-07-31 10:32:59 +0100
committerAndrej Mihajlov <and@mullvad.net>2017-07-31 10:43:13 +0100
commitd4a94c7634ec8f396c81f3e3e65629ec37bff447 (patch)
tree3e00c7e1e7b314ea8f32b53ed64310ba440a23f2 /test
parentc37ade4bb002efa244f152e89ca183664995325e (diff)
downloadmullvadvpn-d4a94c7634ec8f396c81f3e3e65629ec37bff447.tar.xz
mullvadvpn-d4a94c7634ec8f396c81f3e3e65629ec37bff447.zip
Remove isomorphic-fetch since 'electron-mocha --renderer' runs tests in Webkit
Diffstat (limited to 'test')
-rw-r--r--test/mocks/redux.js6
1 files changed, 1 insertions, 5 deletions
diff --git a/test/mocks/redux.js b/test/mocks/redux.js
index 070c76c9b2..9d4759b1d3 100644
--- a/test/mocks/redux.js
+++ b/test/mocks/redux.js
@@ -2,10 +2,6 @@ import configureMockStore from 'redux-mock-store';
import thunk from 'redux-thunk';
import { defaultServer } from '../../app/config';
-// fetch is absent in node environment
-// this will automatically import it into global scope
-import fetch from 'isomorphic-fetch'; // eslint-disable-line no-unused-vars
-
const middlewares = [ thunk ];
export const mockStore = configureMockStore(middlewares);
export const mockState = () => {
@@ -36,7 +32,7 @@ export const filterMinorActions = (actions) => {
if(action.type === 'CONNECTION_CHANGE' && action.payload.isOnline) {
return false;
}
-
+
if(action.type === 'USER_LOGIN_CHANGE' && action.payload.city) {
return false;
}