Skip to content

Commit 393c560

Browse files
committed
test: update testcase
1 parent c33686a commit 393c560

File tree

2 files changed

+9
-1
lines changed

2 files changed

+9
-1
lines changed

defaults.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ const defaults = {
1515
tagForce: false,
1616
gitTagFallback: true,
1717
preset: require.resolve('conventional-changelog-conventionalcommits'),
18-
npmClient: 'npm',
18+
npmClient: 'npm'
1919
}
2020

2121
/**

test/git.spec.js

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -397,6 +397,14 @@ describe('git', function () {
397397
.should.match(/npm publish/)
398398
})
399399

400+
it('can display publish hints with custom npm client name', async function () {
401+
const flush = mock({ bump: 'patch' })
402+
await exec('--npmClient yarn')
403+
flush()
404+
.stdout.join('')
405+
.should.match(/yarn publish/)
406+
})
407+
400408
it('does not display `npm publish` if the package is private', async function () {
401409
writePackageJson('1.0.0', { private: true })
402410
const flush = mock({ bump: 'patch' })

0 commit comments

Comments
 (0)