aboutsummaryrefslogtreecommitdiffstats
path: root/test
diff options
context:
space:
mode:
authorfrankiebee <frankie.diamond@gmail.com>2017-05-24 23:52:18 +0800
committerfrankiebee <frankie.diamond@gmail.com>2017-05-24 23:52:18 +0800
commitdb982cf795d30dd32b4722249daea9296430b5b9 (patch)
tree566c207dfa97963b4cbbb14c6cdb21507b67b49e /test
parente8288ad4bfaa5b65b23f0a03d0c036457a24893f (diff)
downloadtangerine-wallet-browser-db982cf795d30dd32b4722249daea9296430b5b9.tar
tangerine-wallet-browser-db982cf795d30dd32b4722249daea9296430b5b9.tar.gz
tangerine-wallet-browser-db982cf795d30dd32b4722249daea9296430b5b9.tar.bz2
tangerine-wallet-browser-db982cf795d30dd32b4722249daea9296430b5b9.tar.lz
tangerine-wallet-browser-db982cf795d30dd32b4722249daea9296430b5b9.tar.xz
tangerine-wallet-browser-db982cf795d30dd32b4722249daea9296430b5b9.tar.zst
tangerine-wallet-browser-db982cf795d30dd32b4722249daea9296430b5b9.zip
stop polling when switching networks
Diffstat (limited to 'test')
-rw-r--r--test/unit/network-contoller-test.js6
1 files changed, 5 insertions, 1 deletions
diff --git a/test/unit/network-contoller-test.js b/test/unit/network-contoller-test.js
index 183e69cab..46f473af2 100644
--- a/test/unit/network-contoller-test.js
+++ b/test/unit/network-contoller-test.js
@@ -12,7 +12,11 @@ describe('# Network Controller', function () {
},
})
// stub out provider
- networkController._provider = new EventEmitter()
+ networkController._provider = new Proxy(new EventEmitter(), {
+ get: (obj, name) => {
+ return () => {}
+ },
+ })
networkController.providerInit = {
getAccounts: () => {},
}