summaryrefslogtreecommitdiffhomepage
path: root/test/mocks
diff options
context:
space:
mode:
authorAndrej Mihajlov <and@codeispoetry.ru>2017-03-21 18:31:51 +0000
committerAndrej Mihajlov <and@codeispoetry.ru>2017-03-21 18:31:51 +0000
commitf4fb6a08f84cbe5ef7c906167619291ed6747fec (patch)
tree4b4d05f251a303d7bc5950a8ef4a64abcc88e05f /test/mocks
parentce3dcc35cdae34c4b95e5c60783a5a8dce42f3a4 (diff)
downloadmullvadvpn-f4fb6a08f84cbe5ef7c906167619291ed6747fec.tar.xz
mullvadvpn-f4fb6a08f84cbe5ef7c906167619291ed6747fec.zip
Filter out isOnline updates for main tests
Diffstat (limited to 'test/mocks')
-rw-r--r--test/mocks/backend.js6
1 files changed, 5 insertions, 1 deletions
diff --git a/test/mocks/backend.js b/test/mocks/backend.js
index 1588421098..bac5fac19e 100644
--- a/test/mocks/backend.js
+++ b/test/mocks/backend.js
@@ -38,11 +38,15 @@ export const mockBackend = (store) => {
return backend;
};
-export const filterIpUpdateActions = (actions) => {
+export const filterMinorActions = (actions) => {
return actions.filter((action) => {
if(action.type === 'CONNECTION_CHANGE' && action.payload.clientIp) {
return false;
}
+
+ if(action.type === 'CONNECTION_CHANGE' && action.payload.isOnline) {
+ return false;
+ }
if(action.type === 'USER_LOGIN_CHANGE' && action.payload.city) {
return false;