fixed tests
This commit is contained in:
parent
e77c7d90b1
commit
724055f3fc
1 changed files with 3 additions and 3 deletions
|
|
@ -240,7 +240,7 @@ describe('Insight model', function() {
|
||||||
});
|
});
|
||||||
|
|
||||||
var addresses = ['2NATQJnaQe2CUKLyhL1zdNkttJM1dUH9HaM', '2NE9hTCffeugo5gQtfB4owq98gyTeWC56yb'];
|
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;
|
chai.expect(err).to.be.null;
|
||||||
res.items.length.should.be.equal(3);
|
res.items.length.should.be.equal(3);
|
||||||
done();
|
done();
|
||||||
|
|
@ -273,7 +273,7 @@ describe('Insight model', function() {
|
||||||
it('should get activity for an innactive address', function(done) {
|
it('should get activity for an innactive address', function(done) {
|
||||||
var blockchain = new Insight(FAKE_OPTS);
|
var blockchain = new Insight(FAKE_OPTS);
|
||||||
|
|
||||||
sinon.stub(blockchain, "getTransactions", function(addresses, cb) {
|
sinon.stub(blockchain, "getTransactions", function(addresses, from, to, cb) {
|
||||||
cb(null, []);
|
cb(null, []);
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|
@ -290,7 +290,7 @@ describe('Insight model', function() {
|
||||||
it('should get activity for active addresses', function(done) {
|
it('should get activity for active addresses', function(done) {
|
||||||
var blockchain = new Insight(FAKE_OPTS);
|
var blockchain = new Insight(FAKE_OPTS);
|
||||||
|
|
||||||
sinon.stub(blockchain, "getTransactions", function(addresses, cb) {
|
sinon.stub(blockchain, "getTransactions", function(addresses, from, to, cb) {
|
||||||
cb(null, [{
|
cb(null, [{
|
||||||
vin: [{
|
vin: [{
|
||||||
addr: '2NATQJnaQe2CUKLyhL1zdNkttJM1dUH9HaM'
|
addr: '2NATQJnaQe2CUKLyhL1zdNkttJM1dUH9HaM'
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue