Merge pull request #1068 from maraoz/check/docs
check that there is no inconsistency between docs and bitcore version
This commit is contained in:
commit
20315b5fa4
17
test/docs.js
Normal file
17
test/docs.js
Normal file
@ -0,0 +1,17 @@
|
|||||||
|
'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);
|
||||||
|
});
|
||||||
|
});
|
||||||
Loading…
Reference in New Issue
Block a user