Skip to content

Commit

Permalink
test: add skip changelog test
Browse files Browse the repository at this point in the history
  • Loading branch information
georgiee committed Mar 28, 2019
1 parent c2963ae commit 8df9a43
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions test.js
Expand Up @@ -885,6 +885,16 @@ describe('standard-version', function () {
})

describe('skip', () => {
it('can skip changelog generation when a changelog file is not present', function () {
writePackageJson('1.0.0')

commit('feat: first commit')
return execCliAsync('--skip.changelog true')
.then(function () {
getPackageVersion().should.equal('1.1.0')
})
})

it('allows bump and changelog generation to be skipped', function () {
let changelogContent = 'legacy header format<a name="1.0.0">\n'
writePackageJson('1.0.0')
Expand Down

0 comments on commit 8df9a43

Please sign in to comment.