tests: add isCoinbase tests and flags to fixtures
This commit is contained in:
parent
f958dd1e86
commit
ea2a7449ad
15
test/fixtures/transaction.json
vendored
15
test/fixtures/transaction.json
vendored
File diff suppressed because one or more lines are too long
|
@ -162,6 +162,16 @@ describe('Transaction', function () {
|
||||||
})
|
})
|
||||||
})
|
})
|
||||||
|
|
||||||
|
describe('isCoinbase', function () {
|
||||||
|
fixtures.valid.forEach(function (f) {
|
||||||
|
it('should return ' + f.coinbase + ' for ' + f.id, function () {
|
||||||
|
var tx = Transaction.fromHex(f.hex)
|
||||||
|
|
||||||
|
assert.strictEqual(tx.isCoinbase(), f.coinbase)
|
||||||
|
})
|
||||||
|
})
|
||||||
|
})
|
||||||
|
|
||||||
// TODO:
|
// TODO:
|
||||||
// hashForSignature: [Function],
|
// hashForSignature: [Function],
|
||||||
})
|
})
|
||||||
|
|
Loading…
Reference in a new issue