Skip to content
This repository has been archived by the owner on Aug 11, 2022. It is now read-only.

Commit

Permalink
docs: update cli usage for test command (#16771)
Browse files Browse the repository at this point in the history
Fixes: #16748
PR-URL: #16771
Credit: @grawlinson
Reviewed-By: @zkat
  • Loading branch information
grawlinson authored and zkat committed May 31, 2017
1 parent acbe85b commit f3cb84b
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion 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) {
Expand Down

0 comments on commit f3cb84b

Please sign in to comment.