From 36137c6beaee48bdaa4892b29d0ca210c075e34b Mon Sep 17 00:00:00 2001 From: Manuel Araoz Date: Thu, 30 Apr 2015 09:00:59 -0300 Subject: [PATCH] fix block regressions --- api/test/v1/transactions.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/api/test/v1/transactions.js b/api/test/v1/transactions.js index 93d8b5f0..3af02b65 100644 --- a/api/test/v1/transactions.js +++ b/api/test/v1/transactions.js @@ -60,7 +60,7 @@ describe('BitcoreHTTP v1 transactions routes', function() { it('works with valid txHash ...' + hash.substring(hash.length - 8), function(cb) { agent.get('/v1/transactions/' + hash) .expect(200) - .expect(mockTransactions[hash].toJSON(), cb); + .expect(mockTransactions[hash].toObject(), cb); }); }); }); @@ -112,7 +112,7 @@ describe('BitcoreHTTP v1 transactions routes', function() { agent.get('/v1/transactions/' + hash + '/' + name + '/') .expect(200) .expect(tx[name].map(function(x) { - return x.toJSON(); + return x.toObject(); }), cb); }); var canGetSpecificInput = function(i) { @@ -120,7 +120,7 @@ describe('BitcoreHTTP v1 transactions routes', function() { return function(cb) { agent.get('/v1/transactions/' + hash + '/' + name + '/' + i) .expect(200) - .expect(x.toJSON(), cb); + .expect(x.toObject(), cb); }; }; for (var i = 0; i < tx[name].length; i++) {