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
diff options
context:
space:
mode:
authorisaacs <i@izs.me>2020-08-04 08:56:34 +0300
committerisaacs <i@izs.me>2020-08-04 11:03:34 +0300
commit108a4fcb5da23c34690b4767a4c5f7f93ab99c0d (patch)
tree15254742f9e81012fd8d50d6621d9178d2f6977d /test/lib/restart.js
parent0b63d5078a5858b83dba943720c6d6dfe6eb808f (diff)
refactor and lint commands, make consistent
Still pending test coverage for most of these, but wanted to give them a clean sweep to get the "load-all-commands" tests passing. The following changes are in here: - All commands now have a `completion()` method and a usage string that uses the same `usage` util consistently. - The `silent` argument to many commands has been removed. - All commands use the `cmd = ${cmd}(args).then(() => cb()).catch(cb)` pattern consistently. Full test coverage for all commands is still lacking, and will have to be done prior to the GA v7 release.
Diffstat (limited to 'test/lib/restart.js')
-rw-r--r--test/lib/restart.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/test/lib/restart.js b/test/lib/restart.js
index f705d5f60..fde798888 100644
--- a/test/lib/restart.js
+++ b/test/lib/restart.js
@@ -1,5 +1,5 @@
const t = require('tap')
const restart = require('../../lib/restart.js')
t.isa(restart, Function)
-t.equal(restart.completion, undefined, 'no completion')
+t.equal(restart.completion, require('../../lib/utils/completion/none.js'), 'empty completion')
t.equal(restart.usage, 'npm restart [-- <args>]')