1 var path = require("path")
2 var test = require("tap").test
3 var rimraf = require("rimraf")
4 var mkdirp = require("mkdirp")
5 var common = require("../common-tap.js")
7 var pkg = path.resolve(__dirname, "spawn-enoent-help")
9 test("setup", function (t) {
15 test("enoent help", function (t) {
16 common.npm(["help", "config"], {
21 "npm_config_loglevel": "warn",
22 "npm_config_viewer": "woman"
24 }, function (er, code, sout, serr) {
25 t.similar(serr, /Check if the file 'emacsclient' is present./)
26 t.equal(global.cooked, undefined, "Don't leak into global scope")
31 test("clean", function (t) {