mirror of
https://github.com/Permissionless-Software-Foundation/bch-js.git
synced 2026-09-21 16:51:59 -07:00
fix(transaction.js): Added integrationt test
This commit is contained in:
@@ -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)
|
||||
})
|
||||
})
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user