Skip to content
This repository has been archived by the owner on Jan 10, 2023. It is now read-only.

Commit

Permalink
Take version from package.json
Browse files Browse the repository at this point in the history
  • Loading branch information
eddiemoore committed Mar 16, 2017
1 parent a6bdf01 commit e90abf3
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
2 changes: 1 addition & 1 deletion lib/codecov.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ var execSync = require('child_process').execSync;

var detectProvider = require('./detect');

var version = "v1.0.1";
var version = require('../package.json').version;

var patterns = "-type f \\( -name '*coverage.*' " +
"-or -name 'nosetests.xml' " +
Expand Down
5 changes: 5 additions & 0 deletions test/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -126,5 +126,10 @@ describe("Codecov", function(){
expect(res.debug).to.contain('find folder/path -type f -name \'*.gcno\' -not -path \'ignore/this/folder\' -exec llvm-gcov -o {} +');
});

it('should have the correct version number', function() {
var version = require('../package.json').version
expect(codecov.version).to.eql(version)
})


});

0 comments on commit e90abf3

Please sign in to comment.