tests/txb: add P2WSH(multisig), incomplete fixture
This commit is contained in:
parent
0157f18510
commit
5057d8d1ba
3 changed files with 68 additions and 9 deletions
|
@ -91,7 +91,9 @@ describe('TransactionBuilder', function () {
|
|||
|
||||
var tx = Transaction.fromHex(f.txHex)
|
||||
var txb = TransactionBuilder.fromTransaction(tx, network)
|
||||
assert.strictEqual(txb.build().toHex(), f.txHex)
|
||||
var txAfter = f.incomplete ? txb.buildIncomplete() : txb.build()
|
||||
|
||||
assert.strictEqual(txAfter.toHex(), f.txHex)
|
||||
assert.strictEqual(txb.network, network)
|
||||
})
|
||||
})
|
||||
|
@ -305,7 +307,8 @@ describe('TransactionBuilder', function () {
|
|||
fixtures.valid.build.forEach(function (f) {
|
||||
it('builds "' + f.description + '"', function () {
|
||||
var txb = construct(f)
|
||||
var tx = txb.build()
|
||||
var tx = f.incomplete ? txb.buildIncomplete() : txb.build()
|
||||
|
||||
assert.strictEqual(tx.toHex(), f.txHex)
|
||||
})
|
||||
})
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue