From 87269fe73e36c89ec3e77edae16400cf6da380d1 Mon Sep 17 00:00:00 2001 From: Daniel Cousens Date: Mon, 14 Nov 2016 13:22:05 +1100 Subject: [PATCH] tests: move transactionVersion into toBuffer --- test/transaction.js | 16 +++++++--------- 1 file changed, 7 insertions(+), 9 deletions(-) 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 () {