bitcore-node-zcash/test/integration/nodecheck.js

18 lines
409 B
JavaScript
Raw Normal View History

2014-02-11 08:22:57 -08:00
'use strict';
2014-03-10 11:06:10 -07:00
var BlockDb = require('../../lib/BlockDb').default();
2014-02-11 08:22:57 -08:00
var height_needed = 180000;
2014-03-10 11:06:10 -07:00
var bDb = BlockDb;
2014-02-11 08:22:57 -08:00
var expect = require('chai').expect;
describe('Node check', function() {
it('should contain block ' + height_needed, function(done) {
bDb.blockIndex(height_needed, function(err, b) {
expect(err).to.equal(null);
expect(b).to.not.equal(null);
done();
});
});
});