You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 

17 lines
446 B

'use strict';
var chai = require('chai');
var should = chai.should();
var bitcore = require('..');
var fs = require('fs');
describe('Documentation', function() {
it('major and minor versions should match', function() {
var versionRE = /v[0-9]+\.[0-9]+/;
var docIndex = fs.readFileSync('./docs/index.md', 'ascii');
var docVersion = docIndex.match(versionRE)[0];
bitcore.version.indexOf(docVersion).should.equal(0);
});
});