Skip to content

Commit

Permalink
test(vulnerability-check): adapt test due to changes in results from …
Browse files Browse the repository at this point in the history
…npm audit
  • Loading branch information
hdorgeval committed Jun 28, 2019
1 parent eb263af commit ff095a6
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions test/16-npx-integration-with-npm-audit-tests.js
Expand Up @@ -186,14 +186,14 @@ describe('npx integration tests with npm audit', () => {
writeFile('package.json', JSON.stringify(pkg, null, 2));
})
.then(() => {
// will remove low vulnerabilities
const auditOptions = `
--debug
--audit-level=moderate
--json
--audit-level=moderate
`;
writeFile('audit.opts', auditOptions);
})
.then(() => {
// will remove moderate vulnerabilities with advisories 566
const auditIgnore = ['https://npmjs.com/advisories/566'];
writeFile('.auditignore', auditIgnore.join(EOL));
})
Expand Down Expand Up @@ -223,11 +223,11 @@ describe('npx integration tests with npm audit', () => {
/* prettier-ignore */
assert(publishLog.includes('ERRORS'));
/* prettier-ignore */
assert(!publishLog.includes('publish-please -> ban-sensitive-files -> ggit -> lodash'));
assert(publishLog.includes('publish-please -> ban-sensitive-files -> ggit -> lodash'));
/* prettier-ignore */
assert(publishLog.includes('publish-please -> nsp -> https-proxy-agent'));
/* prettier-ignore */
assert(! publishLog.includes('publish-please -> nsp -> joi -> hoek'));
assert(!publishLog.includes('publish-please -> nsp -> joi -> hoek'));
/* prettier-ignore */
assert(!publishLog.includes('publish-please -> nsp -> joi -> moment'));
/* prettier-ignore */
Expand Down

0 comments on commit ff095a6

Please sign in to comment.