diff options
author | Gar <gar+gh@danger.computer> | 2022-09-08 20:01:20 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-09-08 20:01:20 +0300 |
commit | 49bbb2fb9d56e02d94da652befaa3d445283090b (patch) | |
tree | 22a797d230c641cb99cd4a2bc3679674af5c167a /test | |
parent | 285b39f8d6915823fb424cca7161a0b445b86bd3 (diff) |
feat: remove `npm birthday` (#5455)
BREAKING CHANGE: this removes the `npm birthday` command
Diffstat (limited to 'test')
-rw-r--r-- | test/lib/commands/birthday.js | 15 | ||||
-rw-r--r-- | test/lib/npm.js | 4 |
2 files changed, 2 insertions, 17 deletions
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 => { |