From 11079bfafb28b21a90e72ee9f8d8743a569df8a0 Mon Sep 17 00:00:00 2001 From: Daniel Cousens Date: Wed, 9 Nov 2016 12:06:47 +1100 Subject: [PATCH] tests: use hardcoded fixture instead of relying on fixture[0] --- test/transaction.js | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/test/transaction.js b/test/transaction.js index aab0985..6299a93 100644 --- a/test/transaction.js +++ b/test/transaction.js @@ -99,14 +99,12 @@ describe('Transaction', function () { describe('addInput', function () { var prevTxHash beforeEach(function () { - var f = fixtures.valid[0] - prevTxHash = new Buffer(f.hash, 'hex') + prevTxHash = new Buffer('ffffffff00ffff000000000000000000000000000000000000000000101010ff', 'hex') }) it('accepts a transaction hash', function () { var tx = new Transaction() tx.addInput(prevTxHash, 0) - assert.deepEqual(tx.ins[0].hash, prevTxHash) })