summaryrefslogtreecommitdiff
path: root/deps/npm/test/tap/run-script.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/run-script.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/run-script.js')
-rw-r--r--deps/npm/test/tap/run-script.js20
1 files changed, 19 insertions, 1 deletions
diff --git a/deps/npm/test/tap/run-script.js b/deps/npm/test/tap/run-script.js
index 6ce361968d..0b12237fa6 100644
--- a/deps/npm/test/tap/run-script.js
+++ b/deps/npm/test/tap/run-script.js
@@ -78,7 +78,25 @@ test("npm run-script explicitly call pre script with arg", function (t) {
common.npm(["run-script", "prewith-pre", "--", "an arg"], opts, testOutput.bind(null, t, "an arg"))
})
-test("cleanup", function (t) {
+test('npm run-script test', function (t) {
+ common.npm(['run-script', 'test'], opts, function (er, code, stdout, stderr) {
+ if (er)
+ throw er
+ t.notOk(stderr, 'should not generate errors')
+ t.end()
+ })
+})
+
+test('npm run-script nonexistent-script', function (t) {
+ common.npm(['run-script', 'nonexistent-script'], opts, function (er, code, stdout, stderr) {
+ if (er)
+ throw er
+ t.ok(stderr, 'should generate errors')
+ t.end()
+ })
+})
+
+test('cleanup', function (t) {
cleanup()
t.end()
})