mirror of
https://github.com/kremalicious/metamask-extension.git
synced 2024-12-23 09:52:26 +01:00
Persist rinkeby.infura.io and clean nock after
This commit is contained in:
parent
ca047b1ea0
commit
ae795c9770
@ -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 () {
|
||||
|
Loading…
Reference in New Issue
Block a user