Fixing ABC integration tests

This commit is contained in:
Chris Troutner
2021-06-22 12:24:29 -07:00
parent d3a0c5948a
commit a575621c50
3 changed files with 9 additions and 13 deletions
@@ -2,16 +2,16 @@
Integration tests for bchjs dsproof library.
*/
const BCHJS = require('../../src/bch-js')
const BCHJS = require('../../../../src/bch-js')
const bchjs = new BCHJS()
describe('#DSProof', () => {
beforeEach(async () => {
if (process.env.IS_USING_FREE_TIER) await sleep(1000)
if (process.env.IS_USING_FREE_TIER) await bchjs.Util.sleep(1000)
})
describe('#getDSProof', () => {
it('should get info on the full node', async () => {
it('should get TX info from the full node', async () => {
const txid =
'ee0df780b58f6f24467605b2589c44c3a50fc849fb8f91b89669a4ae0d86bc7e'
const result = await bchjs.DSProof.getDSProof(txid)
@@ -19,7 +19,3 @@ describe('#DSProof', () => {
})
})
})
function sleep (ms) {
return new Promise(resolve => setTimeout(resolve, ms))
}