mirror of
https://github.com/Permissionless-Software-Foundation/bch-js.git
synced 2026-09-21 16:51:59 -07:00
fix(axios): Updating axios
This commit is contained in:
@@ -3,7 +3,6 @@
|
||||
*/
|
||||
|
||||
const assert = require('chai').assert
|
||||
const nock = require('nock') // http call mocking
|
||||
const sinon = require('sinon')
|
||||
// const axios = require("axios")
|
||||
|
||||
@@ -24,17 +23,10 @@ describe('#SLP NFT1', () => {
|
||||
let sandbox
|
||||
|
||||
beforeEach(() => {
|
||||
// Activate nock if it's inactive.
|
||||
if (!nock.isActive()) nock.activate()
|
||||
|
||||
sandbox = sinon.createSandbox()
|
||||
})
|
||||
|
||||
afterEach(() => {
|
||||
// Clean up HTTP mocks.
|
||||
nock.cleanAll() // clear interceptor list.
|
||||
nock.restore()
|
||||
|
||||
sandbox.restore()
|
||||
})
|
||||
|
||||
|
||||
Reference in New Issue
Block a user