diff options
author | isaacs <i@izs.me> | 2020-11-17 04:56:54 +0300 |
---|---|---|
committer | Ruy Adorno <ruyadorno@hotmail.com> | 2020-11-17 22:38:18 +0300 |
commit | b1d850960fda95650cd828a7bd8586648d9e2672 (patch) | |
tree | 2f9f436ccdf8b97bcaa87a5e0d236c33068d9444 /test/lib/find-dupes.js | |
parent | de82b6257d6cb81809be8f9e290d4962929e0c25 (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.js | 4 |
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() }) }) - |