1
0
mirror of https://github.com/kremalicious/metamask-extension.git synced 2024-12-23 01:39:44 +01:00

remove option fetch

This commit is contained in:
frankiebee 2017-06-22 13:58:55 -07:00
parent 1ddcbaad5b
commit 42a2bcb132

View File

@ -1,5 +1,5 @@
// polyfill fetch
global.fetch = global.fetch || function () {return Promise.resolve({
global.fetch = function () {return Promise.resolve({
json: () => { return Promise.resolve({"mainnet": "ok", "ropsten": "degraded", "kovan": "down", "rinkeby": "ok"}) },
})
}
@ -20,7 +20,6 @@ describe('infura-controller', function () {
infuraController.checkInfuraNetworkStatus()
.then(() => {
const networkStatus = infuraController.store.getState().infuraNetworkStatus
const networkStatus2 = infuraController.store.getState()
assert.equal(Object.keys(networkStatus).length, 4)
assert.equal(networkStatus.mainnet, 'ok')
assert.equal(networkStatus.ropsten, 'degraded')