From fd62c62a83511789845b4715d4bcd6dca646a6ca Mon Sep 17 00:00:00 2001 From: Manuel Araoz Date: Thu, 30 Apr 2015 09:00:36 -0300 Subject: [PATCH] fix block regressions --- api/test/v1/blocks.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/api/test/v1/blocks.js b/api/test/v1/blocks.js index 574d077b..b91e49cb 100644 --- a/api/test/v1/blocks.js +++ b/api/test/v1/blocks.js @@ -120,7 +120,7 @@ describe('BitcoreHTTP v1 blocks routes', function() { it('works with valid blockHash ...' + hash.substring(hash.length - 8), function(cb) { agent.get('/v1/blocks/' + hash) .expect(200) - .expect(block.toJSON(), cb); + .expect(block.toObject(), cb); }); }); }); @@ -138,7 +138,7 @@ describe('BitcoreHTTP v1 blocks routes', function() { it('works with valid height', function(cb) { agent.get('/v1/blocks/100000') .expect(200) - .expect(b1.toJSON(), cb); + .expect(b1.toObject(), cb); }); });