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/run-script.js')
-rw-r--r--test/tap/run-script.js7
1 files changed, 3 insertions, 4 deletions
diff --git a/test/tap/run-script.js b/test/tap/run-script.js
index 8dfe574e1..9c1d5d1f5 100644
--- a/test/tap/run-script.js
+++ b/test/tap/run-script.js
@@ -54,15 +54,14 @@ var both = {
}
}
-
function testOutput (t, command, er, code, stdout, stderr) {
var lines
- if (er)
- throw er
+ if (er) throw er
- if (stderr)
+ if (stderr) {
throw new Error('npm ' + command + ' stderr: ' + stderr.toString())
+ }
lines = stdout.trim().split('\n')
stdout = lines.filter(function (line) {