node sync integration test

This commit is contained in:
Manuel Araoz 2014-02-11 13:22:57 -03:00
parent 9f6e340364
commit 508eafa393
1 changed files with 17 additions and 0 deletions

View File

@ -0,0 +1,17 @@
'use strict';
var BlockDb = require('../../lib/BlockDb').class();
var height_needed = 180000;
var bDb = new BlockDb();
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();
});
});
});