]> gerrit.simantics Code Review - simantics/district.git/blob - org.simantics.maps.server/node/node-v4.8.0-win-x64/node_modules/npm/test/tap/spawn-enoent-help.js
Adding integrated tile server
[simantics/district.git] / org.simantics.maps.server / node / node-v4.8.0-win-x64 / node_modules / npm / test / tap / spawn-enoent-help.js
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")
6
7 var pkg = path.resolve(__dirname, "spawn-enoent-help")
8
9 test("setup", function (t) {
10   rimraf.sync(pkg)
11   mkdirp.sync(pkg)
12   t.end()
13 })
14
15 test("enoent help", function (t) {
16   common.npm(["help", "config"], {
17     cwd: pkg,
18     env: {
19       PATH: "",
20       Path: "",
21       "npm_config_loglevel": "warn",
22       "npm_config_viewer": "woman"
23     }
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")
27     t.end()
28   })
29 })
30
31 test("clean", function (t) {
32   rimraf.sync(pkg)
33   t.end()
34 })