Sha256: b502ee4d4461ed022e326794736ba48fe5ca295323c28edac0ac99a4ff390f63

Contents?: true

Size: 822 Bytes

Versions: 5

Compression:

Stored size: 822 Bytes

Contents

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()
})

Version data entries

5 entries across 4 versions & 1 rubygems

Version Path
node-compiler-0.9.1 vendor/node/deps/npm/test/tap/spawn-enoent-help.js
node-compiler-0.9.0 vendor/node-v7.2.1/deps/npm/test/tap/spawn-enoent-help.js
node-compiler-0.8.0 vendor/node-v7.2.0/deps/npm/test/tap/spawn-enoent-help.js
node-compiler-0.7.0 vendor/node-v6.9.1/deps/npm/test/tap/spawn-enoent-help.js
node-compiler-0.7.0 vendor/node-v7.1.0/deps/npm/test/tap/spawn-enoent-help.js