summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorAndrej Mihajlov <and@mullvad.net>2018-06-14 16:17:09 +0200
committerAndrej Mihajlov <and@mullvad.net>2018-06-20 15:36:17 +0200
commit01d23b0d5f1140e70c7b20247dff0e842e6555cf (patch)
tree083a7d00f562bc628ebde42b57d0430fe3f49bb9
parent15e3ab04855dbe0bd7355b789756fa6b659e3047 (diff)
downloadmullvadvpn-01d23b0d5f1140e70c7b20247dff0e842e6555cf.tar.xz
mullvadvpn-01d23b0d5f1140e70c7b20247dff0e842e6555cf.zip
Rename strange variable `l` to `listener`
-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();
}
},
};