Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/npm/cli.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorisaacs <i@izs.me>2021-02-01 23:52:22 +0300
committerisaacs <i@izs.me>2021-02-01 23:52:40 +0300
commit667b79adc9873519837a87224664f834f66d783e (patch)
treed47dd741cf1d77f0133ecc980fde61da4a0aa1c4 /test
parent0152dfcfdf11990fb7b43030b115a838443756bb (diff)
test: do not depend on npm.version in usage test
Diffstat (limited to 'test')
-rw-r--r--test/lib/utils/npm-usage.js3
1 files changed, 2 insertions, 1 deletions
diff --git a/test/lib/utils/npm-usage.js b/test/lib/utils/npm-usage.js
index 723750111..72504b90c 100644
--- a/test/lib/utils/npm-usage.js
+++ b/test/lib/utils/npm-usage.js
@@ -20,7 +20,7 @@ const npm = {
},
},
log: {},
- version: '7.99.9999',
+ version: '{VERSION}',
}
const OUTPUT = []
@@ -29,6 +29,7 @@ const output = (...msg) => OUTPUT.push(msg)
const { dirname } = require('path')
const basedir = dirname(dirname(dirname(__dirname)))
t.cleanSnapshot = str => str.split(basedir).join('{BASEDIR}')
+ .split(require('../../../package.json').version).join('{VERSION}')
const requireInject = require('require-inject')
const usage = requireInject('../../../lib/utils/npm-usage.js', {