mirror of
https://github.com/kremalicious/metamask-extension.git
synced 2024-12-23 09:52:26 +01:00
test - unit - network - get providerProxy via public method
This commit is contained in:
parent
ae53fa09b4
commit
eaa5a48c91
@ -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 () {
|
||||
|
Loading…
Reference in New Issue
Block a user