Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/npm/cli.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'test/tap/invalid-cmd-exit-code.js')
-rw-r--r--test/tap/invalid-cmd-exit-code.js22
1 files changed, 11 insertions, 11 deletions
diff --git a/test/tap/invalid-cmd-exit-code.js b/test/tap/invalid-cmd-exit-code.js
index c9918e5a7..f4bb444a1 100644
--- a/test/tap/invalid-cmd-exit-code.js
+++ b/test/tap/invalid-cmd-exit-code.js
@@ -1,28 +1,28 @@
-var test = require("tap").test
-var common = require("../common-tap.js")
+var test = require('tap').test
+var common = require('../common-tap.js')
var opts = { cwd: process.cwd() }
-test("npm asdf should return exit code 1", function (t) {
- common.npm(["asdf"], opts, function (er, c) {
+test('npm asdf should return exit code 1', function (t) {
+ common.npm(['asdf'], opts, function (er, c) {
if (er) throw er
- t.ok(c, "exit code should not be zero")
+ t.ok(c, 'exit code should not be zero')
t.end()
})
})
-test("npm help should return exit code 0", function (t) {
- common.npm(["help"], opts, function (er, c) {
+test('npm help should return exit code 0', function (t) {
+ common.npm(['help'], opts, function (er, c) {
if (er) throw er
- t.equal(c, 0, "exit code should be 0")
+ t.equal(c, 0, 'exit code should be 0')
t.end()
})
})
-test("npm help fadf should return exit code 0", function (t) {
- common.npm(["help", "fadf"], opts, function (er, c) {
+test('npm help fadf should return exit code 0', function (t) {
+ common.npm(['help', 'fadf'], opts, function (er, c) {
if (er) throw er
- t.equal(c, 0, "exit code should be 0")
+ t.equal(c, 0, 'exit code should be 0')
t.end()
})
})