Skip to content

Commit

Permalink
fixup! generalize node version check in tests
Browse files Browse the repository at this point in the history
  • Loading branch information
wraithgar committed Sep 9, 2021
1 parent 1cae166 commit af0c1c5
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions test/lib/install.js
Expand Up @@ -183,7 +183,7 @@ t.test('npm i -g npm engines check failure', (t) => {
message: 'Unsupported engine',
pkgid: 'npm@1.2.3',
current: {
node: 'v14.17.6',
node: process.version,
npm: '100.100.100',
},
required: {
Expand Down Expand Up @@ -254,7 +254,7 @@ t.test('npm i -g npm@version engines check failure', (t) => {
message: 'Unsupported engine',
pkgid: 'npm@1.2.3',
current: {
node: 'v14.17.6',
node: process.version,
npm: '100.100.100',
},
required: {
Expand Down

0 comments on commit af0c1c5

Please sign in to comment.