From e07a5b9da00f20271dd2b2cc8b78db4d454c3240 Mon Sep 17 00:00:00 2001 From: Chris Troutner Date: Mon, 10 Jan 2022 14:48:43 -0800 Subject: [PATCH] Adding getBlockchainInfo() integration test --- test/integration/blockchain.js | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/test/integration/blockchain.js b/test/integration/blockchain.js index 0b90788..462067a 100644 --- a/test/integration/blockchain.js +++ b/test/integration/blockchain.js @@ -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) {