diff options
author | George Rawlinson <george@rawlinson.net.nz> | 2017-05-31 09:05:46 +0300 |
---|---|---|
committer | Kat Marchán <kzm@sykosomatic.org> | 2017-05-31 09:05:46 +0300 |
commit | f3cb84b446c51d628ee0033cdf13752c15b31a29 (patch) | |
tree | 3c689b6954f13b59aa7ddf83ff42bb10fe421007 | |
parent | acbe85bfc1a68d19ca339a3fb71da0cffbf58926 (diff) |
docs: update cli usage for test command (#16771)
Fixes: #16748
PR-URL: https://github.com/npm/npm/pull/16771
Credit: @grawlinson
Reviewed-By: @zkat
-rw-r--r-- | lib/test.js | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/lib/test.js b/lib/test.js index cbc758217..4ef025c4b 100644 --- a/lib/test.js +++ b/lib/test.js @@ -1,6 +1,12 @@ module.exports = test -var testCmd = require('./utils/lifecycle.js').cmd('test') +const testCmd = require('./utils/lifecycle.js').cmd('test') +const usage = require('./utils/usage') + +test.usage = usage( + 'test', + 'npm test [-- <args>]' +) function test (args, cb) { testCmd(args, function (er) { |