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

find-dupes.js « lib « test - github.com/npm/cli.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: c7b33ceb6ed3435aaa61500f5a1b7b5b96382551 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
const t = require('tap')

const FindDupes = require('../../lib/find-dupes.js')

t.test('should run dedupe in dryRun mode', (t) => {
  t.plan(3)
  const findDupesTest = new FindDupes({
    config: {
      set: (k, v) => {
        t.match(k, 'dry-run')
        t.match(v, true)
      },
    },
    commands: {
      dedupe: (args, cb) => {
        t.match(args, [])
        cb()
      },
    },
  })
  findDupesTest.exec({}, () => {
    t.end()
  })
})