diff options
author | Timothy J Fontaine <tjfontaine@gmail.com> | 2013-10-25 11:26:05 -0700 |
---|---|---|
committer | Timothy J Fontaine <tjfontaine@gmail.com> | 2013-10-25 11:26:05 -0700 |
commit | 61ccaf9a974bedf54622a1d6ad6b6ad00f95f5a5 (patch) | |
tree | 1dc52d619bd9ad2424bae83d66c837e7eea6ba06 /deps/npm/test/tap/ls-no-results.js | |
parent | f153d6da450b6ba5c78381e6e90a7ba243657691 (diff) | |
parent | 21265e20d3be515733418c5eef395ccec8f5f701 (diff) | |
download | node-new-61ccaf9a974bedf54622a1d6ad6b6ad00f95f5a5.tar.gz |
Merge remote-tracking branch 'upstream/v0.10'
Conflicts:
ChangeLog
deps/uv/ChangeLog
deps/uv/include/uv-darwin.h
deps/uv/src/unix/fsevents.c
deps/uv/src/unix/process.c
deps/uv/src/version.c
doc/api/addons.markdown
doc/api/cluster.markdown
doc/api/http.markdown
lib/http.js
lib/tls.js
src/node_crypto.cc
src/node_http_parser.cc
src/node_version.h
src/pipe_wrap.cc
src/v8abbr.h
src/v8ustack.d
test/simple/test-http-pipeline-flood.js
Diffstat (limited to 'deps/npm/test/tap/ls-no-results.js')
-rw-r--r-- | deps/npm/test/tap/ls-no-results.js | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/deps/npm/test/tap/ls-no-results.js b/deps/npm/test/tap/ls-no-results.js new file mode 100644 index 0000000000..9792774c69 --- /dev/null +++ b/deps/npm/test/tap/ls-no-results.js @@ -0,0 +1,12 @@ +var test = require('tap').test +var spawn = require('child_process').spawn +var node = process.execPath +var npm = require.resolve('../../') +var args = [ npm, 'ls', 'ceci n’est pas une package' ] +test('ls exits non-zero when nothing found', function (t) { + var child = spawn(node, args) + child.on('exit', function (code) { + t.notEqual(code, 0) + t.end() + }) +}) |