Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/npm/cli.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
Diffstat (limited to 'lib')
-rw-r--r--lib/test.js8
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) {