1 var test = require("tap").test
2 var common = require("../common-tap.js")
4 var opts = { cwd: process.cwd() }
6 test("npm asdf should return exit code 1", function (t) {
7 common.npm(["asdf"], opts, function (er, c) {
9 t.ok(c, "exit code should not be zero")
14 test("npm help should return exit code 0", function (t) {
15 common.npm(["help"], opts, function (er, c) {
17 t.equal(c, 0, "exit code should be 0")
22 test("npm help fadf should return exit code 0", function (t) {
23 common.npm(["help", "fadf"], opts, function (er, c) {
25 t.equal(c, 0, "exit code should be 0")