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-11-17 04:56:54 +0300
committerRuy Adorno <ruyadorno@hotmail.com>2020-11-17 22:38:18 +0300
commitb1d850960fda95650cd828a7bd8586648d9e2672 (patch)
tree2f9f436ccdf8b97bcaa87a5e0d236c33068d9444 /test/lib/find-dupes.js
parentde82b6257d6cb81809be8f9e290d4962929e0c25 (diff)
lint tests before publishing
We have a lot of tests that were not handling errors in callbacks, not defining variables, defining variables that weren't used, and just generally not formatted like the rest of npm. Hazard of moving fast. Thankfully, machines can help.
Diffstat (limited to 'test/lib/find-dupes.js')
-rw-r--r--test/lib/find-dupes.js4
1 files changed, 1 insertions, 3 deletions
diff --git a/test/lib/find-dupes.js b/test/lib/find-dupes.js
index 2f6272b90..73c8fa2dc 100644
--- a/test/lib/find-dupes.js
+++ b/test/lib/find-dupes.js
@@ -1,5 +1,4 @@
const { test } = require('tap')
-const findDupes = require('../../lib/find-dupes.js')
const requireInject = require('require-inject')
test('should run dedupe in dryRun mode', (t) => {
@@ -7,11 +6,10 @@ test('should run dedupe in dryRun mode', (t) => {
'../../lib/dedupe.js': function (args, cb) {
t.ok(args.dryRun, 'dryRun is true')
cb()
- }
+ },
})
findDupes(null, () => {
t.ok(true, 'callback is called')
t.end()
})
})
-