fix(transaction.js): Added integrationt test

This commit is contained in:
Chris Troutner
2022-01-23 06:46:06 -08:00
parent 1a2f144baf
commit 51038681d3
2 changed files with 16 additions and 1 deletions
@@ -81,4 +81,19 @@ describe('#Transaction', () => {
})
})
}
describe('#get', () => {
it('should get a tx details for a non-SLP TX with an OP_RETURN', async () => {
const txid =
'01517ff1587fa5ffe6f5eb91c99cf3f2d22330cd7ee847e928ce90ca95bf781b'
const result = await bchjs.Transaction.get(txid)
// console.log('result: ', result)
assert.property(result.txData, 'txid')
assert.property(result.txData, 'vin')
assert.property(result.txData, 'vout')
assert.equal(result.txData.isValidSlp, false)
})
})
})