aboutsummaryrefslogtreecommitdiffstats
path: root/test
diff options
context:
space:
mode:
authorkumavis <aaron@kumavis.me>2018-05-17 14:54:17 +0800
committerkumavis <aaron@kumavis.me>2018-05-17 14:54:17 +0800
commiteaa5a48c918b6d647c9dc75d8769a5e0ff6c42bb (patch)
tree1f6934f2ac25dc96804211a419baf4d427d71b32 /test
parentae53fa09b4f01820dfe3820233d32ac03bfdada0 (diff)
downloadtangerine-wallet-browser-eaa5a48c918b6d647c9dc75d8769a5e0ff6c42bb.tar
tangerine-wallet-browser-eaa5a48c918b6d647c9dc75d8769a5e0ff6c42bb.tar.gz
tangerine-wallet-browser-eaa5a48c918b6d647c9dc75d8769a5e0ff6c42bb.tar.bz2
tangerine-wallet-browser-eaa5a48c918b6d647c9dc75d8769a5e0ff6c42bb.tar.lz
tangerine-wallet-browser-eaa5a48c918b6d647c9dc75d8769a5e0ff6c42bb.tar.xz
tangerine-wallet-browser-eaa5a48c918b6d647c9dc75d8769a5e0ff6c42bb.tar.zst
tangerine-wallet-browser-eaa5a48c918b6d647c9dc75d8769a5e0ff6c42bb.zip
test - unit - network - get providerProxy via public method
Diffstat (limited to 'test')
-rw-r--r--test/unit/network-contoller-test.js9
1 files changed, 5 insertions, 4 deletions
diff --git a/test/unit/network-contoller-test.js b/test/unit/network-contoller-test.js
index 2d590a3f6..54cd3c7f4 100644
--- a/test/unit/network-contoller-test.js
+++ b/test/unit/network-contoller-test.js
@@ -33,11 +33,12 @@ describe('# Network Controller', function () {
describe('network', function () {
describe('#provider', function () {
- it('provider should be updatable without reassignment', function () {
+ it.only('provider should be updatable without reassignment', function () {
networkController.initializeProvider(networkControllerProviderConfig)
- const proxy = networkController._proxy
- proxy.setTarget({ test: true, on: () => {} })
- assert.ok(proxy.test)
+ const providerProxy = networkController.getProviderAndBlockTracker().provider
+ assert.equal(providerProxy.test, undefined)
+ providerProxy.setTarget({ test: true })
+ assert.equal(providerProxy.test, true)
})
})
describe('#getNetworkState', function () {