From 724055f3fc04d0941fe90afd3446e9ae75296348 Mon Sep 17 00:00:00 2001 From: Ivan Socolsky Date: Wed, 26 Nov 2014 12:42:37 -0300 Subject: [PATCH] fixed tests --- test/blockchain.Insight.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/test/blockchain.Insight.js b/test/blockchain.Insight.js index fda233305..e2ba6a3e7 100644 --- a/test/blockchain.Insight.js +++ b/test/blockchain.Insight.js @@ -240,7 +240,7 @@ describe('Insight model', function() { }); var addresses = ['2NATQJnaQe2CUKLyhL1zdNkttJM1dUH9HaM', '2NE9hTCffeugo5gQtfB4owq98gyTeWC56yb']; - blockchain.getTransactions(addresses, null, null, function(err, res) { + blockchain.getTransactions(addresses, 0, null, function(err, res) { chai.expect(err).to.be.null; res.items.length.should.be.equal(3); done(); @@ -273,7 +273,7 @@ describe('Insight model', function() { it('should get activity for an innactive address', function(done) { var blockchain = new Insight(FAKE_OPTS); - sinon.stub(blockchain, "getTransactions", function(addresses, cb) { + sinon.stub(blockchain, "getTransactions", function(addresses, from, to, cb) { cb(null, []); }); @@ -290,7 +290,7 @@ describe('Insight model', function() { it('should get activity for active addresses', function(done) { var blockchain = new Insight(FAKE_OPTS); - sinon.stub(blockchain, "getTransactions", function(addresses, cb) { + sinon.stub(blockchain, "getTransactions", function(addresses, from, to, cb) { cb(null, [{ vin: [{ addr: '2NATQJnaQe2CUKLyhL1zdNkttJM1dUH9HaM'