Skip to content

Commit

Permalink
fix: update tests to count vulns in new format
Browse files Browse the repository at this point in the history
  • Loading branch information
lili2311 committed Oct 22, 2019
1 parent 0fa055a commit c76adb2
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions test/policy-trust-deep.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -18,15 +18,15 @@ test('`snyk test` sees suggested ignore policies', async (t) => {
'found suggestion to ignore',
);

originalVulnCount = count('vulnerability found', vulns);
originalVulnCount = count('', vulns);
}
});

test('`snyk test` ignores when applying `--trust-policies`', async (t) => {
try {
await cli.test(dir, { 'trust-policies': true });
} catch (res) {
const vulnCount = count('vulnerability found', res.message.trim());
const vulnCount = count('', res.message.trim());
t.equal(originalVulnCount - vulnCount, 2, '2 vulns ignored');
}
});
Expand Down

0 comments on commit c76adb2

Please sign in to comment.