From 49bbb2fb9d56e02d94da652befaa3d445283090b Mon Sep 17 00:00:00 2001 From: Gar Date: Thu, 8 Sep 2022 10:01:20 -0700 Subject: feat: remove `npm birthday` (#5455) BREAKING CHANGE: this removes the `npm birthday` command --- test/lib/commands/birthday.js | 15 --------------- test/lib/npm.js | 4 ++-- 2 files changed, 2 insertions(+), 17 deletions(-) delete mode 100644 test/lib/commands/birthday.js (limited to 'test') diff --git a/test/lib/commands/birthday.js b/test/lib/commands/birthday.js deleted file mode 100644 index 9156d3df0..000000000 --- a/test/lib/commands/birthday.js +++ /dev/null @@ -1,15 +0,0 @@ -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', []) -}) diff --git a/test/lib/npm.js b/test/lib/npm.js index d9201c8a6..135a02cc9 100644 --- a/test/lib/npm.js +++ b/test/lib/npm.js @@ -574,10 +574,10 @@ t.test('aliases and typos', async t => { const { npm } = await loadMockNpm(t, { load: false }) await t.rejects(npm.cmd('thisisnotacommand'), { code: 'EUNKNOWNCOMMAND' }) await t.rejects(npm.cmd(''), { code: 'EUNKNOWNCOMMAND' }) - await t.rejects(npm.cmd('birt'), { code: 'EUNKNOWNCOMMAND' }) + await t.rejects(npm.cmd('birthday'), { code: 'EUNKNOWNCOMMAND' }) await t.resolves(npm.cmd('it'), { name: 'install-test' }) await t.resolves(npm.cmd('installTe'), { name: 'install-test' }) - await t.resolves(npm.cmd('birthday'), { name: 'birthday' }) + await t.resolves(npm.cmd('access'), { name: 'access' }) }) t.test('explicit workspace rejection', async t => { -- cgit v1.2.3