From caee2db99ec4fee08c0ac3674019e7632f70551f Mon Sep 17 00:00:00 2001 From: Chris Troutner Date: Thu, 13 Aug 2020 16:41:49 -0700 Subject: [PATCH] fix(ninsight): fixing testnet integration test --- test/integration/testnet/ninsight.js | 26 +++++++++++++------------- 1 file changed, 13 insertions(+), 13 deletions(-) diff --git a/test/integration/testnet/ninsight.js b/test/integration/testnet/ninsight.js index bc292ac..7f913fc 100644 --- a/test/integration/testnet/ninsight.js +++ b/test/integration/testnet/ninsight.js @@ -17,21 +17,21 @@ describe(`#Ninsight`, () => { const result = await bchjs.Ninsight.utxo(addr) // console.log(`result: ${JSON.stringify(result, null, 2)}`) - assert.property(result, "utxos") - assert.property(result, "legacyAddress") - assert.property(result, "cashAddress") - assert.property(result, "slpAddress") - assert.property(result, "scriptPubKey") - assert.property(result, "asm") + assert.property(result[0], "utxos") + assert.property(result[0], "legacyAddress") + assert.property(result[0], "cashAddress") + assert.property(result[0], "slpAddress") + assert.property(result[0], "scriptPubKey") + assert.property(result[0], "asm") - assert.isArray(result.utxos) + assert.isArray(result[0].utxos) - assert.property(result.utxos[0], "txid") - assert.property(result.utxos[0], "vout") - assert.property(result.utxos[0], "amount") - assert.property(result.utxos[0], "satoshis") - assert.property(result.utxos[0], "height") - assert.property(result.utxos[0], "confirmations") + assert.property(result[0].utxos[0], "txid") + assert.property(result[0].utxos[0], "vout") + assert.property(result[0].utxos[0], "amount") + assert.property(result[0].utxos[0], "satoshis") + assert.property(result[0].utxos[0], "height") + assert.property(result[0].utxos[0], "confirmations") }) it(`should POST utxo details for an array of addresses`, async () => {