test: fix audit tests

This commit is contained in:
Zoltan Kochan
2021-09-26 14:20:03 +03:00
parent 04111a1b7a
commit efad5d47d4

View File

@@ -167,6 +167,17 @@ exports[`audit --audit-level 1`] = `
│ More info │ https://npmjs.com/advisories/1781 │
└─────────────────────┴──────────────────────────────────────────────────────────────────────────────────────────┘
┌─────────────────────┬───────────────────────────────────┐
│ high │ Code Injection │
├─────────────────────┼───────────────────────────────────┤
│ Package │ pac-resolver │
├─────────────────────┼───────────────────────────────────┤
│ Vulnerable versions │ <5.0.0 │
├─────────────────────┼───────────────────────────────────┤
│ Patched versions │ >=5.0.0 │
├─────────────────────┼───────────────────────────────────┤
│ More info │ https://npmjs.com/advisories/1784 │
└─────────────────────┴───────────────────────────────────┘
┌─────────────────────┬───────────────────────────────────┐
│ moderate │ Tmp files readable by other users │
├─────────────────────┼───────────────────────────────────┤
│ Package │ sync-exec │
@@ -243,8 +254,8 @@ exports[`audit --audit-level 1`] = `
├─────────────────────┼───────────────────────────────────┤
│ More info │ https://npmjs.com/advisories/1776 │
└─────────────────────┴───────────────────────────────────┘
29 vulnerabilities found
Severity: 7 low | 7 moderate | 13 high | 2 critical"
30 vulnerabilities found
Severity: 7 low | 7 moderate | 14 high | 2 critical"
`;
exports[`audit --dev 1`] = `
@@ -452,6 +463,17 @@ exports[`audit 1`] = `
│ More info │ https://npmjs.com/advisories/1781 │
└─────────────────────┴──────────────────────────────────────────────────────────────────────────────────────────┘
┌─────────────────────┬───────────────────────────────────┐
│ high │ Code Injection │
├─────────────────────┼───────────────────────────────────┤
│ Package │ pac-resolver │
├─────────────────────┼───────────────────────────────────┤
│ Vulnerable versions │ <5.0.0 │
├─────────────────────┼───────────────────────────────────┤
│ Patched versions │ >=5.0.0 │
├─────────────────────┼───────────────────────────────────┤
│ More info │ https://npmjs.com/advisories/1784 │
└─────────────────────┴───────────────────────────────────┘
┌─────────────────────┬───────────────────────────────────┐
│ moderate │ Tmp files readable by other users │
├─────────────────────┼───────────────────────────────────┤
│ Package │ sync-exec │
@@ -594,6 +616,6 @@ exports[`audit 1`] = `
├─────────────────────┼──────────────────────────────────────┤
│ More info │ https://npmjs.com/advisories/1662 │
└─────────────────────┴──────────────────────────────────────┘
29 vulnerabilities found
Severity: 7 low | 7 moderate | 13 high | 2 critical"
30 vulnerabilities found
Severity: 7 low | 7 moderate | 14 high | 2 critical"
`;