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:
Diffstat (limited to 'test/lib/access.js')
-rw-r--r--test/lib/access.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/test/lib/access.js b/test/lib/access.js
index 8134c1d91..a8e28c8eb 100644
--- a/test/lib/access.js
+++ b/test/lib/access.js
@@ -41,7 +41,7 @@ test('completion', t => {
test('subcommand required', t => {
const access = new Access({ flatOptions: {} })
access.exec([], (err) => {
- t.equal(err, '\nUsage: Subcommand is required.\n\n' + access.usage)
+ t.match(err, access.usageError('Subcommand is required.'))
t.end()
})
})