aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorfrankiebee <frankie.diamond@gmail.com>2017-06-23 04:58:55 +0800
committerfrankiebee <frankie.diamond@gmail.com>2017-06-23 05:06:20 +0800
commit42a2bcb1325bd5763a6402d5c2d6634053da908b (patch)
tree3ecf814e2b50353495590de4f628e503b8d47df0
parent1ddcbaad5bdd554d9711a9a7cdb29e71703325f3 (diff)
downloadtangerine-wallet-browser-42a2bcb1325bd5763a6402d5c2d6634053da908b.tar
tangerine-wallet-browser-42a2bcb1325bd5763a6402d5c2d6634053da908b.tar.gz
tangerine-wallet-browser-42a2bcb1325bd5763a6402d5c2d6634053da908b.tar.bz2
tangerine-wallet-browser-42a2bcb1325bd5763a6402d5c2d6634053da908b.tar.lz
tangerine-wallet-browser-42a2bcb1325bd5763a6402d5c2d6634053da908b.tar.xz
tangerine-wallet-browser-42a2bcb1325bd5763a6402d5c2d6634053da908b.tar.zst
tangerine-wallet-browser-42a2bcb1325bd5763a6402d5c2d6634053da908b.zip
remove option fetch
-rw-r--r--test/unit/infura-controller-test.js3
1 files changed, 1 insertions, 2 deletions
diff --git a/test/unit/infura-controller-test.js b/test/unit/infura-controller-test.js
index 75bd031ff..7a2a114f9 100644
--- a/test/unit/infura-controller-test.js
+++ b/test/unit/infura-controller-test.js
@@ -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')