diff options
author | Thomas <tmashuang@gmail.com> | 2018-03-10 03:20:18 +0800 |
---|---|---|
committer | Thomas <tmashuang@gmail.com> | 2018-03-10 03:20:18 +0800 |
commit | ae795c977012f152ae96b160fcb8c1e3996904fa (patch) | |
tree | d7de2eb09477043b388eff66e0e84bdac5b30d27 | |
parent | ca047b1ea0bd6778fc3b0c05b86ff23d0964f98d (diff) | |
download | dexon-wallet-ae795c977012f152ae96b160fcb8c1e3996904fa.tar.gz dexon-wallet-ae795c977012f152ae96b160fcb8c1e3996904fa.tar.zst dexon-wallet-ae795c977012f152ae96b160fcb8c1e3996904fa.zip |
Persist rinkeby.infura.io and clean nock after
-rw-r--r-- | test/unit/network-contoller-test.js | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/test/unit/network-contoller-test.js b/test/unit/network-contoller-test.js index 51ad09f8..dd0b5236 100644 --- a/test/unit/network-contoller-test.js +++ b/test/unit/network-contoller-test.js @@ -15,11 +15,8 @@ describe('# Network Controller', function () { beforeEach(function () { - nock('https://api.infura.io') - .get('/*/') - .reply(200) - nock('https://rinkeby.infura.io') + .persist() .post('/metamask') .reply(200) @@ -29,6 +26,11 @@ describe('# Network Controller', function () { networkController.initializeProvider(networkControllerProviderInit, provider) }) + + afterEach(function () { + nock.cleanAll() + }) + describe('network', function () { describe('#provider', function () { it('provider should be updatable without reassignment', function () { |