mirror of
https://github.com/Permissionless-Software-Foundation/bch-js.git
synced 2026-09-21 16:51:59 -07:00
28 lines
570 B
JavaScript
28 lines
570 B
JavaScript
/*
|
|
Integration tests for the bchjs. Only covers calls made to
|
|
rest.bitcoin.com.
|
|
*/
|
|
|
|
// import chai from 'chai'
|
|
// import BCHJS from '../../../../src/bch-js.js'
|
|
|
|
// Inspect utility used for debugging.
|
|
import util from 'util'
|
|
// const assert = chai.assert
|
|
// const bchjs = new BCHJS()
|
|
util.inspect.defaultOptions = {
|
|
showHidden: true,
|
|
colors: true,
|
|
depth: 3
|
|
}
|
|
|
|
describe('#util', () => {
|
|
beforeEach(async () => {
|
|
if (process.env.IS_USING_FREE_TIER) await sleep(1500)
|
|
})
|
|
})
|
|
|
|
function sleep (ms) {
|
|
return new Promise(resolve => setTimeout(resolve, ms))
|
|
}
|