summaryrefslogtreecommitdiff
path: root/deps/npm/test/tap/spawn-enoent-help.js
diff options
context:
space:
mode:
authorForrest L Norvell <ogd@aoaioxxysz.net>2015-01-08 14:37:26 -0800
committerBen Noordhuis <info@bnoordhuis.nl>2015-01-08 23:49:03 +0100
commite79ccee1685393e4ec73746bac93835cbcf3a809 (patch)
tree304a1ddd59495b50a20d1b25c62da2a4519228db /deps/npm/test/tap/spawn-enoent-help.js
parent156cd82ef4d2ff4fa291407de562c3a7c2386dc7 (diff)
downloadandroid-node-v8-e79ccee1685393e4ec73746bac93835cbcf3a809.tar.gz
android-node-v8-e79ccee1685393e4ec73746bac93835cbcf3a809.tar.bz2
android-node-v8-e79ccee1685393e4ec73746bac93835cbcf3a809.zip
npm: upgrade to v2.1.18
PR-URL: https://github.com/iojs/io.js/pull/266 Reviewed-By: Ben Noordhuis <info@bnoordhuis.nl>
Diffstat (limited to 'deps/npm/test/tap/spawn-enoent-help.js')
-rw-r--r--deps/npm/test/tap/spawn-enoent-help.js34
1 files changed, 34 insertions, 0 deletions
diff --git a/deps/npm/test/tap/spawn-enoent-help.js b/deps/npm/test/tap/spawn-enoent-help.js
new file mode 100644
index 0000000000..70fb078faf
--- /dev/null
+++ b/deps/npm/test/tap/spawn-enoent-help.js
@@ -0,0 +1,34 @@
+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")
+
+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()
+})