Skip to content
This repository has been archived by the owner on May 22, 2024. It is now read-only.

Commit

Permalink
chore: simplify Node version check
Browse files Browse the repository at this point in the history
Co-authored-by: Netlify Team Account 1 <90322326+netlify-team-account-1@users.noreply.github.com>
  • Loading branch information
eduardoboucas and netlify-team-account-1 committed Nov 4, 2021
1 parent 5822057 commit e6115b4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tests/main.js
Original file line number Diff line number Diff line change
Expand Up @@ -452,7 +452,7 @@ testMany(
const func4 = () => require(join(tmpDir, 'function_import_only.zip_out', 'function_import_only.js'))

// Dynamic imports are not supported in Node <13.2.0.
if (semver.gte(nodeVersion.slice(1), '13.2.0')) {
if (semver.gte(nodeVersion, '13.2.0')) {
t.is(await func2()(), 0)
}

Expand Down

0 comments on commit e6115b4

Please sign in to comment.