Skip to content

Commit

Permalink
fix: add test for commit msg for when using commitAll
Browse files Browse the repository at this point in the history
  • Loading branch information
jdbruijn committed Apr 2, 2019
1 parent 25f71fb commit 9e434cc
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions test.js
Expand Up @@ -667,6 +667,18 @@ describe('cli', function () {
result.stdout.should.not.match(/npm publish/)
})

it('does not display `all staged files` without the --commit-all flag', function () {
var result = execCli()
result.code.should.equal(0)
result.stdout.should.not.match(/and all staged files/)
})

it('does display `all staged files` if the --commit-all flag is passed', function () {
var result = execCli('--commit-all')
result.code.should.equal(0)
result.stdout.should.match(/and all staged files/)
})

it('includes merge commits', function () {
var branchName = 'new-feature'
commit('feat: first commit')
Expand Down

0 comments on commit 9e434cc

Please sign in to comment.