diff options
author | nlf <quitlahok@gmail.com> | 2020-12-18 20:15:15 +0300 |
---|---|---|
committer | isaacs <i@izs.me> | 2020-12-18 23:05:54 +0300 |
commit | 7539504e3abdec28039a7798e5ccb745b536cb6e (patch) | |
tree | d402304e8eaebc5521194cf927c07912178661fe /test/lib/npm.js | |
parent | 0ad958fe1cb811699caca235f361c8328baac8c4 (diff) |
remove the metrics sendernlf/remove-metrics
PR-URL: https://github.com/npm/cli/pull/2382
Credit: @nlf
Close: #2382
Reviewed-by: @isaacs
Diffstat (limited to 'test/lib/npm.js')
-rw-r--r-- | test/lib/npm.js | 7 |
1 files changed, 0 insertions, 7 deletions
diff --git a/test/lib/npm.js b/test/lib/npm.js index dac9696ca..8494af6bb 100644 --- a/test/lib/npm.js +++ b/test/lib/npm.js @@ -202,8 +202,6 @@ t.test('npm.load', t => { t.equal(npm.bin, npm.globalBin, 'bin is global bin after prefix setter') t.notEqual(npm.bin, npm.localBin, 'bin is not local bin after prefix setter') - t.equal(npm.config.get('metrics-registry'), npm.config.get('registry')) - beWindows() t.equal(npm.bin, npm.globalBin, 'bin is global bin in windows mode') t.equal(npm.dir, npm.globalDir, 'dir is global dir in windows mode') @@ -261,7 +259,6 @@ t.test('npm.load', t => { process.argv = [ node, process.argv[1], - '--metrics-registry', 'http://example.com', '--prefix', dir, '--userconfig', `${dir}/.npmrc`, '--usage', @@ -292,7 +289,6 @@ t.test('npm.load', t => { throw er t.equal(npm.config.get('scope'), '@foo', 'added the @ sign to scope') - t.equal(npm.config.get('metrics-registry'), 'http://example.com') t.match(logs.filter(l => l[0] !== 'timing' || !/^config:/.test(l[1])), [ [ 'verbose', @@ -396,7 +392,6 @@ t.test('set process.title', t => { argv: [ process.execPath, process.argv[1], - '--metrics-registry', 'http://example.com', '--usage', '--scope=foo', 'ls', @@ -415,7 +410,6 @@ t.test('set process.title', t => { argv: [ process.execPath, process.argv[1], - '--metrics-registry', 'http://example.com', '--usage', '--scope=foo', 'token', @@ -436,7 +430,6 @@ t.test('set process.title', t => { argv: [ process.execPath, process.argv[1], - '--metrics-registry', 'http://example.com', '--usage', '--scope=foo', 'token', |