diff options
author | frankiebee <frankie.diamond@gmail.com> | 2017-07-13 06:10:58 +0800 |
---|---|---|
committer | frankiebee <frankie.diamond@gmail.com> | 2017-07-13 06:10:58 +0800 |
commit | 751103d94804c661e6386969cb64d9d74a1f3bbc (patch) | |
tree | 323d26a26cf70c7b3af2ad74a234be4fa8f9bf3a /test | |
parent | aeefcbd75bcf419833b9cc5b734e2d86f47ba6d1 (diff) | |
parent | 822ebca3eb4a1e03b88d2e9def11260de44a9f63 (diff) | |
download | tangerine-wallet-browser-751103d94804c661e6386969cb64d9d74a1f3bbc.tar tangerine-wallet-browser-751103d94804c661e6386969cb64d9d74a1f3bbc.tar.gz tangerine-wallet-browser-751103d94804c661e6386969cb64d9d74a1f3bbc.tar.bz2 tangerine-wallet-browser-751103d94804c661e6386969cb64d9d74a1f3bbc.tar.lz tangerine-wallet-browser-751103d94804c661e6386969cb64d9d74a1f3bbc.tar.xz tangerine-wallet-browser-751103d94804c661e6386969cb64d9d74a1f3bbc.tar.zst tangerine-wallet-browser-751103d94804c661e6386969cb64d9d74a1f3bbc.zip |
Merge branch 'master' into nonce-tracker
Diffstat (limited to 'test')
-rw-r--r-- | test/unit/infura-controller-test.js | 66 |
1 files changed, 33 insertions, 33 deletions
diff --git a/test/unit/infura-controller-test.js b/test/unit/infura-controller-test.js index 7a2a114f9..912867764 100644 --- a/test/unit/infura-controller-test.js +++ b/test/unit/infura-controller-test.js @@ -1,34 +1,34 @@ // polyfill fetch -global.fetch = function () {return Promise.resolve({ - json: () => { return Promise.resolve({"mainnet": "ok", "ropsten": "degraded", "kovan": "down", "rinkeby": "ok"}) }, - }) -} -const assert = require('assert') -const InfuraController = require('../../app/scripts/controllers/infura') - -describe('infura-controller', function () { - var infuraController - - beforeEach(function () { - infuraController = new InfuraController() - }) - - describe('network status queries', function () { - describe('#checkInfuraNetworkStatus', function () { - it('should return an object reflecting the network statuses', function (done) { - this.timeout(15000) - infuraController.checkInfuraNetworkStatus() - .then(() => { - const networkStatus = infuraController.store.getState().infuraNetworkStatus - assert.equal(Object.keys(networkStatus).length, 4) - assert.equal(networkStatus.mainnet, 'ok') - assert.equal(networkStatus.ropsten, 'degraded') - assert.equal(networkStatus.kovan, 'down') - }) - .then(() => done()) - .catch(done) - - }) - }) - }) -}) +// global.fetch = function () {return Promise.resolve({ +// json: () => { return Promise.resolve({"mainnet": "ok", "ropsten": "degraded", "kovan": "down", "rinkeby": "ok"}) }, +// }) +// } +// const assert = require('assert') +// const InfuraController = require('../../app/scripts/controllers/infura') +// +// describe('infura-controller', function () { +// var infuraController +// +// beforeEach(function () { +// infuraController = new InfuraController() +// }) +// +// describe('network status queries', function () { +// describe('#checkInfuraNetworkStatus', function () { +// it('should return an object reflecting the network statuses', function (done) { +// this.timeout(15000) +// infuraController.checkInfuraNetworkStatus() +// .then(() => { +// const networkStatus = infuraController.store.getState().infuraNetworkStatus +// assert.equal(Object.keys(networkStatus).length, 4) +// assert.equal(networkStatus.mainnet, 'ok') +// assert.equal(networkStatus.ropsten, 'degraded') +// assert.equal(networkStatus.kovan, 'down') +// }) +// .then(() => done()) +// .catch(done) +// +// }) +// }) +// }) +// }) |