summaryrefslogtreecommitdiffhomepage
path: root/test/mocks
diff options
context:
space:
mode:
authorAndrej Mihajlov <and@mullvad.net>2018-06-20 16:20:04 +0200
committerAndrej Mihajlov <and@mullvad.net>2018-06-20 16:20:04 +0200
commit648c6e06ce07503be4eebbd46bd7b2e843a862fe (patch)
treee8867916c95f8855dee60ad06f44e94244aa60f3 /test/mocks
parent3e7a83f27a10cf6630ba5ff885b64cc24b02e9e3 (diff)
parentffd34043d74cd59206c260b59d318c8e9bba9a39 (diff)
downloadmullvadvpn-648c6e06ce07503be4eebbd46bd7b2e843a862fe.tar.xz
mullvadvpn-648c6e06ce07503be4eebbd46bd7b2e843a862fe.zip
Merge branch 'migrate-to-chai-spies'
Diffstat (limited to 'test/mocks')
-rw-r--r--test/mocks/ipc.js8
1 files changed, 4 insertions, 4 deletions
diff --git a/test/mocks/ipc.js b/test/mocks/ipc.js
index cd8dc9fbac..590313ec13 100644
--- a/test/mocks/ipc.js
+++ b/test/mocks/ipc.js
@@ -78,8 +78,8 @@ export function newMockIpc() {
},
sendNewState: (state: BackendState) => {
- for (const l of stateListeners) {
- l(state);
+ for (const listener of stateListeners) {
+ listener(state);
}
},
@@ -94,8 +94,8 @@ export function newMockIpc() {
removeAccountFromHistory: (_accountToken) => Promise.resolve(),
killWebSocket: () => {
- for (const l of connectionCloseListeners) {
- l();
+ for (const listener of connectionCloseListeners) {
+ listener();
}
},
};