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

birthday.js « commands « lib « test - github.com/npm/cli.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: 9156d3df09421af2b4b71399dbc739876ebc9243 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
const t = require('tap')
const { load: loadMockNpm } = require('../../fixtures/mock-npm')

t.test('birthday', async t => {
  t.plan(2)
  const { npm } = await loadMockNpm(t, {
    mocks: {
      libnpmexec: ({ args, yes }) => {
        t.ok(yes)
        t.match(args, ['@npmcli/npm-birthday'])
      },
    },
  })
  await npm.exec('birthday', [])
})