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: 8c95dd57b2e3aac864a32f4f94248361ebce9d53 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
const t = require('tap')
const { real: mockNpm } = require('../../fixtures/mock-npm')

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