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

github.com/nodejs/node.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'deps/npm/test/lib/cache.js')
-rw-r--r--deps/npm/test/lib/cache.js12
1 files changed, 2 insertions, 10 deletions
diff --git a/deps/npm/test/lib/cache.js b/deps/npm/test/lib/cache.js
index 2e9ad346bb5..05d269dd4dc 100644
--- a/deps/npm/test/lib/cache.js
+++ b/deps/npm/test/lib/cache.js
@@ -208,18 +208,10 @@ t.test('cache completion', t => {
const { completion } = cache
const testComp = (argv, expect) => {
- completion({ conf: { argv: { remain: argv } } }, (err, res) => {
- t.ifError(err)
- t.strictSame(res, expect, argv.join(' '))
- })
+ t.resolveMatch(completion({ conf: { argv: { remain: argv } } }), expect, argv.join(' '))
}
- testComp(['npm', 'cache'], [
- 'add',
- 'clean',
- 'verify',
- ])
-
+ testComp(['npm', 'cache'], ['add', 'clean', 'verify'])
testComp(['npm', 'cache', 'add'], [])
testComp(['npm', 'cache', 'clean'], [])
testComp(['npm', 'cache', 'verify'], [])