[go: nahoru, domu]

Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

tests(snyk): assert upper bounds #9308

Merged
merged 9 commits into from
Jul 20, 2019
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
add comment
  • Loading branch information
connorjclark committed Jul 8, 2019
commit ba9bc7c6ec2ed7153ae68a46fb39a201062af04e
Original file line number Diff line number Diff line change
Expand Up @@ -104,6 +104,11 @@ describe('Every snyk vulnerability has an upperbound', () => {
for (const vulns of Object.values(NoVulnerableLibrariesAudit.snykDB.npm)) {
for (const vuln of vulns) {
for (const semver of vuln.semver.vulnerable) {
// Examples of what semver can be:
// <1.12.2
// >=1.12.3 <2.2.2
// >=2.2.3 <3.0.0
// >=3.0.0 <3.10.1 || =3.10.2
assert.notEqual(semver, '*', 'invalid semver: * is not allowed');

const clauses = semver.split('||');
Expand Down