diff --git a/test/transaction.js b/test/transaction.js index ed15167..693e91e 100644 --- a/test/transaction.js +++ b/test/transaction.js @@ -73,6 +73,13 @@ describe('Transaction', function () { }, new RegExp(f.exception)) }) }) + + it('.version should be interpreted as an int32le', function () { + var txHex = 'ffffffff0000ffffffff' + var tx = Transaction.fromHex(txHex) + assert.equal(-1, tx.version) + assert.equal(0xffffffff, tx.locktime) + }) }) describe('toBuffer/toHex', function () { @@ -103,15 +110,6 @@ describe('Transaction', function () { }) }) - describe('transactionVersion', function () { - it('should be interpreted as an int32le', function () { - var txHex = 'ffffffff0000ffffffff' - var tx = Transaction.fromHex(txHex) - assert.equal(-1, tx.version) - assert.equal(0xffffffff, tx.locktime) - }) - }) - describe('addInput', function () { var prevTxHash beforeEach(function () {