aboutsummaryrefslogtreecommitdiffstats
path: root/test/unit/network-contoller-test.js
diff options
context:
space:
mode:
authorThomas <tmashuang@gmail.com>2018-03-10 03:20:18 +0800
committerThomas <tmashuang@gmail.com>2018-03-10 03:20:18 +0800
commitae795c977012f152ae96b160fcb8c1e3996904fa (patch)
treed7de2eb09477043b388eff66e0e84bdac5b30d27 /test/unit/network-contoller-test.js
parentca047b1ea0bd6778fc3b0c05b86ff23d0964f98d (diff)
downloadtangerine-wallet-browser-ae795c977012f152ae96b160fcb8c1e3996904fa.tar
tangerine-wallet-browser-ae795c977012f152ae96b160fcb8c1e3996904fa.tar.gz
tangerine-wallet-browser-ae795c977012f152ae96b160fcb8c1e3996904fa.tar.bz2
tangerine-wallet-browser-ae795c977012f152ae96b160fcb8c1e3996904fa.tar.lz
tangerine-wallet-browser-ae795c977012f152ae96b160fcb8c1e3996904fa.tar.xz
tangerine-wallet-browser-ae795c977012f152ae96b160fcb8c1e3996904fa.tar.zst
tangerine-wallet-browser-ae795c977012f152ae96b160fcb8c1e3996904fa.zip
Persist rinkeby.infura.io and clean nock after
Diffstat (limited to 'test/unit/network-contoller-test.js')
-rw-r--r--test/unit/network-contoller-test.js10
1 files changed, 6 insertions, 4 deletions
diff --git a/test/unit/network-contoller-test.js b/test/unit/network-contoller-test.js
index 51ad09f87..dd0b52365 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 () {