diff --git a/test/transaction_builder_v2.js b/test/transaction_builder_v2.js index 94815f2..6f83eff 100644 --- a/test/transaction_builder_v2.js +++ b/test/transaction_builder_v2.js @@ -188,13 +188,6 @@ describe('TransactionBuilderV2', () => { const txAfter = f.incomplete ? txb.buildIncomplete() : txb.build() assert.strictEqual(txAfter.toHex(), f.txHex) }) - - // Comment this test out for now because it won't pass until we get signitures working - // it('doesn\'t loose PSBT data when cycling through fromPsbtString() => toPsbtString(), with ' + f.description, () => { - // const txb = TransactionBuilderV2.fromPsbtString(f.psbt) - // const txAfter = f.incomplete ? txb.buildIncomplete() : txb.build() - // assert.strictEqual(f.psbt, txAfter.toPsbtString()) - // }) }) }) @@ -207,6 +200,13 @@ describe('TransactionBuilderV2', () => { assert.strictEqual(txb.toPsbtString(), f.psbt) }) }) + + fixtures.valid.fromPsbtString.forEach(f => { + it('doesn\'t loose PSBT data when cycling through fromPsbtString() => toPsbtString(), with ' + f.description, () => { + const txb = TransactionBuilderV2.fromPsbtString(f.psbt) + assert.strictEqual(f.psbt, txb.toPsbtString()) + }) + }) }) describe('inputCount', () => {