aboutsummaryrefslogtreecommitdiffstats
path: root/test/unit
diff options
context:
space:
mode:
authorkumavis <aaron@kumavis.me>2017-09-28 05:44:13 +0800
committerkumavis <aaron@kumavis.me>2017-09-28 05:44:13 +0800
commitf2d9b75e94ba52ce34faff0640f494028d037246 (patch)
treee58d0c6d6f62313f25fea62160c946fb1759ce40 /test/unit
parentc781e11c7a4b8c6d0c74cc741af4d805d8bac00f (diff)
downloadtangerine-wallet-browser-f2d9b75e94ba52ce34faff0640f494028d037246.tar
tangerine-wallet-browser-f2d9b75e94ba52ce34faff0640f494028d037246.tar.gz
tangerine-wallet-browser-f2d9b75e94ba52ce34faff0640f494028d037246.tar.bz2
tangerine-wallet-browser-f2d9b75e94ba52ce34faff0640f494028d037246.tar.lz
tangerine-wallet-browser-f2d9b75e94ba52ce34faff0640f494028d037246.tar.xz
tangerine-wallet-browser-f2d9b75e94ba52ce34faff0640f494028d037246.tar.zst
tangerine-wallet-browser-f2d9b75e94ba52ce34faff0640f494028d037246.zip
network controller - refactor to use _setProvider
Diffstat (limited to 'test/unit')
-rw-r--r--test/unit/network-contoller-test.js6
1 files changed, 3 insertions, 3 deletions
diff --git a/test/unit/network-contoller-test.js b/test/unit/network-contoller-test.js
index c1fdaf032..0b3b5adeb 100644
--- a/test/unit/network-contoller-test.js
+++ b/test/unit/network-contoller-test.js
@@ -20,9 +20,9 @@ describe('# Network Controller', function () {
describe('#provider', function () {
it('provider should be updatable without reassignment', function () {
networkController.initializeProvider(networkControllerProviderInit, dummyProviderConstructor)
- const provider = networkController.provider
- networkController.provider.setTarget({test: true, on: () => {}})
- assert.ok(provider.test)
+ const proxy = networkController._proxy
+ proxy.setTarget({ test: true, on: () => {} })
+ assert.ok(proxy.test)
})
})
describe('#getNetworkState', function () {