mirror of
https://github.com/kremalicious/metamask-extension.git
synced 2024-12-23 09:52:26 +01:00
fix timing-reliant network controller test
This commit is contained in:
parent
1591ed7657
commit
93f695d3c6
@ -34,8 +34,10 @@ describe('NetworkController', function () {
|
|||||||
assert.equal(providerProxy.test, true)
|
assert.equal(providerProxy.test, true)
|
||||||
})
|
})
|
||||||
})
|
})
|
||||||
|
|
||||||
describe('#getNetworkState', function () {
|
describe('#getNetworkState', function () {
|
||||||
it('should return loading when new', function () {
|
it('should return loading when new', function () {
|
||||||
|
networkController = new NetworkController()
|
||||||
const networkState = networkController.getNetworkState()
|
const networkState = networkController.getNetworkState()
|
||||||
assert.equal(networkState, 'loading', 'network is loading')
|
assert.equal(networkState, 'loading', 'network is loading')
|
||||||
})
|
})
|
||||||
|
Loading…
Reference in New Issue
Block a user