1
0
mirror of https://github.com/kremalicious/metamask-extension.git synced 2024-10-22 19:26:13 +02:00

fix timing-reliant network controller test

This commit is contained in:
Erik Marks 2020-07-25 11:25:34 -07:00
parent f6f8e5cc4a
commit 5cb22ee8df

View File

@ -34,8 +34,10 @@ describe('NetworkController', function () {
assert.equal(providerProxy.test, true)
})
})
describe('#getNetworkState', function () {
it('should return loading when new', function () {
networkController = new NetworkController()
const networkState = networkController.getNetworkState()
assert.equal(networkState, 'loading', 'network is loading')
})