aboutsummaryrefslogtreecommitdiffstats
path: root/test/unit/app/controllers/network-contoller-test.js
diff options
context:
space:
mode:
Diffstat (limited to 'test/unit/app/controllers/network-contoller-test.js')
-rw-r--r--test/unit/app/controllers/network-contoller-test.js9
1 files changed, 5 insertions, 4 deletions
diff --git a/test/unit/app/controllers/network-contoller-test.js b/test/unit/app/controllers/network-contoller-test.js
index 789850ef3..701eb5718 100644
--- a/test/unit/app/controllers/network-contoller-test.js
+++ b/test/unit/app/controllers/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 () {