|
|
@ -33,11 +33,12 @@ describe('# Network Controller', function () { |
|
|
|
|
|
|
|
|
|
|
|
describe('network', function () { |
|
|
|
describe('network', function () { |
|
|
|
describe('#provider', function () { |
|
|
|
describe('#provider', function () { |
|
|
|
it('provider should be updatable without reassignment', function () { |
|
|
|
it.only('provider should be updatable without reassignment', function () { |
|
|
|
networkController.initializeProvider(networkControllerProviderConfig) |
|
|
|
networkController.initializeProvider(networkControllerProviderConfig) |
|
|
|
const proxy = networkController._proxy |
|
|
|
const providerProxy = networkController.getProviderAndBlockTracker().provider |
|
|
|
proxy.setTarget({ test: true, on: () => {} }) |
|
|
|
assert.equal(providerProxy.test, undefined) |
|
|
|
assert.ok(proxy.test) |
|
|
|
providerProxy.setTarget({ test: true }) |
|
|
|
|
|
|
|
assert.equal(providerProxy.test, true) |
|
|
|
}) |
|
|
|
}) |
|
|
|
}) |
|
|
|
}) |
|
|
|
describe('#getNetworkState', function () { |
|
|
|
describe('#getNetworkState', function () { |
|
|
|