File tree Expand file tree Collapse file tree 2 files changed +3
-1
lines changed Expand file tree Collapse file tree 2 files changed +3
-1
lines changed Original file line number Diff line number Diff line change @@ -3,6 +3,8 @@ const { isNodeVulnerable } = require('./index')
3
3
4
4
async function t ( ) {
5
5
// of course, this test is fragile
6
+ assert . ok ( await isNodeVulnerable ( '20.5.0' ) )
7
+ assert . ok ( await isNodeVulnerable ( '20.0.0' ) )
6
8
assert . ok ( await isNodeVulnerable ( '19.0.0' ) )
7
9
assert . ok ( await isNodeVulnerable ( '18.0.0' ) )
8
10
assert . ok ( await isNodeVulnerable ( '14.0.0' ) )
@@ -14,7 +16,7 @@ async function t () {
14
16
assert . rejects ( ( ) => isNodeVulnerable ( 'lts' ) , / n o t g e t e x a c t l y o n e v e r s i o n / )
15
17
assert . rejects ( ( ) => isNodeVulnerable ( '999' ) , / n o t g e t e x a c t l y o n e v e r s i o n / )
16
18
assert . rejects ( ( ) => isNodeVulnerable ( 'Unobtanium' ) , / n o t g e t e x a c t l y o n e v e r s i o n / ) // i.e. not found
17
- assert . rejects ( ( ) => isNodeVulnerable ( '20 .0.0' ) , / n o t g e t e x a c t l y o n e v e r s i o n / )
19
+ assert . rejects ( ( ) => isNodeVulnerable ( '21 .0.0' ) , / n o t g e t e x a c t l y o n e v e r s i o n / )
18
20
19
21
// EOL
20
22
assert . ok ( await isNodeVulnerable ( '17.0.0' ) )
You can’t perform that action at this time.
0 commit comments