Skip to content

Commit

Permalink
test: add latest sec release tests (#31)
Browse files Browse the repository at this point in the history
  • Loading branch information
RafaelGSS authored Jan 21, 2025
1 parent b03e4d1 commit 73ede6e
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions test.js
Original file line number Diff line number Diff line change
Expand Up @@ -14,12 +14,14 @@ async function t () {
assert.ok(await isNodeVulnerable('16.19.0'))
assert.ok(await isNodeVulnerable('20.8.0'))
assert.ok(await isNodeVulnerable('20.11.0'))
assert.ok(await isNodeVulnerable('23.6.0'))

assert.rejects(() => isNodeVulnerable('999'), /Could not fetch version information/)
assert.rejects(() => isNodeVulnerable('Unobtanium'), /Could not fetch version information/) // i.e. not found
assert.rejects(() => isNodeVulnerable('25.0.0'), /Could not fetch version information/)

// EOL
assert.ok(await isNodeVulnerable('21.0.0'))
assert.ok(await isNodeVulnerable('19.0.0'))
assert.ok(await isNodeVulnerable('16.0.0'))
assert.ok(await isNodeVulnerable('17.0.0'))
Expand Down

0 comments on commit 73ede6e

Please sign in to comment.