Adding getBlockchainInfo() integration test

This commit is contained in:
Chris Troutner
2022-01-10 14:48:43 -08:00
parent 5ada76eace
commit e07a5b9da0
+8
View File
@@ -313,6 +313,14 @@ describe('#blockchain', () => {
assert.isString(result)
})
})
describe('#getBlockchainInfo', () => {
it('should get info about the blockchain', async () => {
const result = await bchjs.Blockchain.getBlockchainInfo()
console.log(`blockchain info: ${JSON.stringify(result, null, 2)}`)
})
})
})
function sleep (ms) {