diff options
author | Thomas Huang <thomas.b.huang@gmail.com> | 2018-02-16 00:34:31 +0800 |
---|---|---|
committer | Thomas Huang <thomas.b.huang@gmail.com> | 2018-02-16 00:34:31 +0800 |
commit | 33182efb1384dc05c8ecdb8994d12dd30abcbc7e (patch) | |
tree | 57c0a39fb82aee568c21b5050280ff75ac3812d7 /test/unit/network-contoller-test.js | |
parent | dc24a6e8c26ec0110b8ecdbb3881419abe7098fe (diff) | |
download | tangerine-wallet-browser-33182efb1384dc05c8ecdb8994d12dd30abcbc7e.tar tangerine-wallet-browser-33182efb1384dc05c8ecdb8994d12dd30abcbc7e.tar.gz tangerine-wallet-browser-33182efb1384dc05c8ecdb8994d12dd30abcbc7e.tar.bz2 tangerine-wallet-browser-33182efb1384dc05c8ecdb8994d12dd30abcbc7e.tar.lz tangerine-wallet-browser-33182efb1384dc05c8ecdb8994d12dd30abcbc7e.tar.xz tangerine-wallet-browser-33182efb1384dc05c8ecdb8994d12dd30abcbc7e.tar.zst tangerine-wallet-browser-33182efb1384dc05c8ecdb8994d12dd30abcbc7e.zip |
Offline testing
Diffstat (limited to 'test/unit/network-contoller-test.js')
-rw-r--r-- | test/unit/network-contoller-test.js | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/test/unit/network-contoller-test.js b/test/unit/network-contoller-test.js index 0b3b5adeb..fe3b9e66a 100644 --- a/test/unit/network-contoller-test.js +++ b/test/unit/network-contoller-test.js @@ -1,4 +1,5 @@ const assert = require('assert') +const nock = require('nock') const NetworkController = require('../../app/scripts/controllers/network') describe('# Network Controller', function () { @@ -8,6 +9,9 @@ describe('# Network Controller', function () { } beforeEach(function () { + nock('https://api.infura.io') + .get('/*/') + .reply(200, {}) networkController = new NetworkController({ provider: { type: 'rinkeby', |