Comparing version 0.0.2 to 0.0.3
@@ -15,3 +15,3 @@ #!/usr/bin/env node | ||
program | ||
.version('0.0.2') | ||
.version('0.0.3') | ||
.usage('[options]') | ||
@@ -36,3 +36,3 @@ .option('-f, --format [value]', 'Coverage input format') | ||
if (program.help) { | ||
if (program.help === true) { | ||
return; | ||
@@ -39,0 +39,0 @@ } |
@@ -11,3 +11,3 @@ (function (logger, exec, Q) { | ||
var gitCommit = process.env.process.env.CODACY_GIT_COMMIT; | ||
var gitCommit = process.env.CODACY_GIT_COMMIT; | ||
@@ -14,0 +14,0 @@ gitCommit = gitCommit || process.env.TRAVIS_COMMIT || process.env.DRONE_COMMIT || process.env.GIT_COMMIT || process.env.CIRCLE_SHA1 || process.env.CI_COMMIT_ID || process.env.WERCKER_GIT_COMMIT; |
{ | ||
"name": "codacy", | ||
"version": "0.0.2", | ||
"version": "0.0.3", | ||
"description": "Code Coverage reporter for Codacy", | ||
@@ -5,0 +5,0 @@ "keywords": [ |
@@ -44,3 +44,3 @@ (function (chai, Q, exec, Joi, parser, helper) { | ||
}); | ||
it('should be able to parse lcov data', function (done) { | ||
it.only('should be able to parse lcov data', function (done) { | ||
var bodyObject = { | ||
@@ -84,4 +84,4 @@ total: 92, | ||
helper.setupMockEndpoint('1234', '4321', Joi.compile(bodyObject)).then(function () { | ||
exec('cat ./test/mock/lcov.info | node ./bin/codacy.js --token 1234 --commit 4321', { timeout: 1000 }, function (err) { | ||
helper.setupMockEndpoint('1234', '4321', Joi.compile(bodyObject)).then(function (nock) { | ||
exec('cat ./test/mock/lcov.info | node ./bin/codacy.js --token 1234 --commit 4321', function (err, res) { | ||
if (err) { | ||
@@ -91,3 +91,4 @@ return done(err); | ||
//nock.done(); //TODO: Need to check this, timing issues occur right now | ||
console.log(res); | ||
nock.done(); //TODO: Need to check this, timing issues occur right now | ||
done(); | ||
@@ -94,0 +95,0 @@ }); |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
Environment variable access
Supply chain riskPackage accesses environment variables, which may be a sign of credential stuffing or data theft.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
Environment variable access
Supply chain riskPackage accesses environment variables, which may be a sign of credential stuffing or data theft.
Found 1 instance in 1 package
33322
511