Skip to content

Commit 3843f7a

Browse files
committed
fixup! test: add active release line test
1 parent be33900 commit 3843f7a

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

test.js

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -16,9 +16,11 @@ async function t () {
1616
assert.ok(await isNodeVulnerable('20.8.0'))
1717
assert.ok(await isNodeVulnerable('20.11.0'))
1818

19-
const [active, _] = await nv('active')
20-
assert.ok(!await isNodeVulnerable(active))
21-
19+
const activeVersions = await nv('active')
20+
for (const active of activeVersions) {
21+
assert.ok(!await isNodeVulnerable(active.version))
22+
}
23+
2224
const ltsVersions = await nv(['lts'])
2325
if (ltsVersions.length > 1) {
2426
assert.rejects(() => isNodeVulnerable('lts'), /not get exactly one version/)

0 commit comments

Comments
 (0)