Skip to content

Commit

Permalink
test: update vuln count
Browse files Browse the repository at this point in the history
  • Loading branch information
Anton Drukh committed Jul 27, 2017
1 parent 317a7bf commit 5f811e1
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), 22, 'all 22 vulns found');
t.equal(count('vulnerability found', vulns), 25, 'all 25 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), 20, 'only 20 vulns left');
t.equal(count('vulnerability found', vulns), 23, 'only 23 vulns left');
});
});

Expand Down

0 comments on commit 5f811e1

Please sign in to comment.