mirror of
https://github.com/nodejs/node.git
synced 2025-05-15 14:41:29 +00:00

Contains the following npm releases: - v3.9.0: https://github.com/npm/npm/releases/tag/v3.9.0 - v3.9.1: https://github.com/npm/npm/releases/tag/v3.9.1 - v3.9.2: https://github.com/npm/npm/releases/tag/v3.9.2 - v3.9.3: https://github.com/npm/npm/releases/tag/v3.9.3 PR-URL: https://github.com/nodejs/node/pull/7030 Reviewed-By: Jeremiah Senkpiel <fishrock123@rocketmail.com>
37 lines
822 B
JavaScript
37 lines
822 B
JavaScript
var path = require('path')
|
|
var test = require('tap').test
|
|
var rimraf = require('rimraf')
|
|
var mkdirp = require('mkdirp')
|
|
var common = require('../common-tap.js')
|
|
|
|
var pkg = path.resolve(__dirname, 'spawn-enoent-help')
|
|
|
|
common.pendIfWindows('man pages are not built on Windows')
|
|
|
|
test('setup', function (t) {
|
|
rimraf.sync(pkg)
|
|
mkdirp.sync(pkg)
|
|
t.end()
|
|
})
|
|
|
|
test('enoent help', function (t) {
|
|
common.npm(['help', 'config'], {
|
|
cwd: pkg,
|
|
env: {
|
|
PATH: '',
|
|
Path: '',
|
|
'npm_config_loglevel': 'warn',
|
|
'npm_config_viewer': 'woman'
|
|
}
|
|
}, function (er, code, sout, serr) {
|
|
t.similar(serr, /Check if the file 'emacsclient' is present./)
|
|
t.equal(global.cooked, undefined, "Don't leak into global scope")
|
|
t.end()
|
|
})
|
|
})
|
|
|
|
test('clean', function (t) {
|
|
rimraf.sync(pkg)
|
|
t.end()
|
|
})
|