Skip to content

Commit

Permalink
test: update vuln counts
Browse files Browse the repository at this point in the history
  • Loading branch information
Anton Drukh committed Mar 6, 2017
1 parent 54a7c62 commit b22ab39
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions test/policy-trust-deep.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,15 +8,15 @@ test('`snyk test` sees suggested ignore policies', function (t) {
var vulns = res.message.toLowerCase();
t.notEqual(vulns.indexOf('suggests ignoring this issue, with reason: test trust policies'), -1, 'found suggestion to ignore');

t.equal(count('vulnerability found', vulns), 4, 'all 4 vulns found');
t.equal(count('vulnerability found', vulns), 7, 'all 7 vulns found');
});
});

test('`snyk test` ignores when applying `--trust-policies`', function (t) {
return cli.test(dir, { 'trust-policies': true }).catch(function (res) {
var vulns = res.message.trim();
// note: it's 2 vulns
t.equal(count('vulnerability found', vulns), 2, 'only 2 vulns left');
t.equal(count('vulnerability found', vulns), 5, 'only 5 vulns left');
});
});

Expand Down

0 comments on commit b22ab39

Please sign in to comment.