Skip to content

Commit

Permalink
deps: fix npm doctor tests for pre-release node
Browse files Browse the repository at this point in the history
Refs: npm/cli#2358

PR-URL: #36543
Reviewed-By: Luigi Pinca <luigipinca@gmail.com>
Reviewed-By: Anna Henningsen <anna@addaleax.net>
Reviewed-By: Ruy Adorno <ruyadorno@github.com>
Reviewed-By: Joyee Cheung <joyeec9h3@gmail.com>
  • Loading branch information
nlf authored and targos committed Dec 21, 2020
1 parent b0393fa commit 752c94d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion deps/npm/test/lib/doctor.js
Original file line number Diff line number Diff line change
Expand Up @@ -479,7 +479,7 @@ test('npm doctor outdated nodejs version', t => {
npm.globalDir = dir
npm.localBin = dir
npm.globalBin = dir
nodeVersions.push({ version: process.version.replace(/\d+$/, '999'), lts: false })
nodeVersions.push({ version: process.version.replace(/\d+(-.*)?$/, '999'), lts: false })
const consoleError = console.error
// we just print an empty line here, so swallow it and ignore
console.error = () => {}
Expand Down

0 comments on commit 752c94d

Please sign in to comment.