1
0
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:
Erik Marks 2020-07-25 11:25:34 -07:00 committed by Mark Stacey
parent 1591ed7657
commit 93f695d3c6

View File

@ -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')
}) })