aboutsummaryrefslogtreecommitdiffstats
path: root/test
diff options
context:
space:
mode:
authorkumavis <kumavis@users.noreply.github.com>2017-05-25 00:14:30 +0800
committerGitHub <noreply@github.com>2017-05-25 00:14:30 +0800
commit664fc078004cb612c6d953d4ae80fa769f607688 (patch)
tree1a986f0ccf4894d7348c7c441f321f3a5ee8ee60 /test
parentcd631db1242ede923e9375b6a1161afd3f0883ec (diff)
parente23c0f98faef3282d684bba48a53a1f48425b52d (diff)
downloadtangerine-wallet-browser-664fc078004cb612c6d953d4ae80fa769f607688.tar
tangerine-wallet-browser-664fc078004cb612c6d953d4ae80fa769f607688.tar.gz
tangerine-wallet-browser-664fc078004cb612c6d953d4ae80fa769f607688.tar.bz2
tangerine-wallet-browser-664fc078004cb612c6d953d4ae80fa769f607688.tar.lz
tangerine-wallet-browser-664fc078004cb612c6d953d4ae80fa769f607688.tar.xz
tangerine-wallet-browser-664fc078004cb612c6d953d4ae80fa769f607688.tar.zst
tangerine-wallet-browser-664fc078004cb612c6d953d4ae80fa769f607688.zip
Merge pull request #1487 from MetaMask/stopPolling
Stop polling
Diffstat (limited to 'test')
-rw-r--r--test/unit/network-contoller-test.js7
1 files changed, 5 insertions, 2 deletions
diff --git a/test/unit/network-contoller-test.js b/test/unit/network-contoller-test.js
index 183e69cab..76452b303 100644
--- a/test/unit/network-contoller-test.js
+++ b/test/unit/network-contoller-test.js
@@ -1,4 +1,3 @@
-const EventEmitter = require('events')
const assert = require('assert')
const NetworkController = require('../../app/scripts/controllers/network')
@@ -12,7 +11,11 @@ describe('# Network Controller', function () {
},
})
// stub out provider
- networkController._provider = new EventEmitter()
+ networkController._provider = new Proxy({}, {
+ get: (obj, name) => {
+ return () => {}
+ },
+ })
networkController.providerInit = {
getAccounts: () => {},
}