diff options
author | Kat Marchán <kzm@sykosomatic.org> | 2016-04-11 11:32:13 -0700 |
---|---|---|
committer | Jeremiah Senkpiel <fishrock123@rocketmail.com> | 2016-04-14 12:22:16 -0400 |
commit | 40e79b1305fb7b0f27278475c8d9ca60d1d5e9b4 (patch) | |
tree | ab47dc63a075962f1a9763bb94a485f9cb3563e7 /deps/npm/test/tap/search.js | |
parent | a432935211210bf1c92d057c455a5dd6aa5517ab (diff) | |
download | android-node-v8-40e79b1305fb7b0f27278475c8d9ca60d1d5e9b4.tar.gz android-node-v8-40e79b1305fb7b0f27278475c8d9ca60d1d5e9b4.tar.bz2 android-node-v8-40e79b1305fb7b0f27278475c8d9ca60d1d5e9b4.zip |
deps: upgrade npm to 3.8.6
PR-URL: https://github.com/nodejs/node/pull/6153
Reviewed-By: Jeremiah Senkpiel <fishrock123@rocketmail.com>
Diffstat (limited to 'deps/npm/test/tap/search.js')
-rw-r--r-- | deps/npm/test/tap/search.js | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/deps/npm/test/tap/search.js b/deps/npm/test/tap/search.js index 08cc7a6fe6..138517c3bd 100644 --- a/deps/npm/test/tap/search.js +++ b/deps/npm/test/tap/search.js @@ -74,6 +74,20 @@ test('No previous cache, init cache triggered by first search', function (t) { }) }) +test('no arguments provided should error', function (t) { + common.npm(['search'], [], function (err, code, stdout, stderr) { + if (err) throw err + t.equal(code, 1, 'search finished unsuccessfully') + + t.match( + stderr, + /search must be called with arguments/, + 'should have correct error message' + ) + t.end() + }) +}) + test('previous cache, _updated set, should trigger since request', function (t) { setupCache() |