Skip to content

Commit

Permalink
test: use const based on new eslint rules
Browse files Browse the repository at this point in the history
This was caused by tests in #320 using `var` and being merged into the trunk (as-is) just before the new eslint rules (#321)
  • Loading branch information
Joe Bottigliero authored and bcoe committed May 5, 2019
1 parent 3c1037a commit 67f2f15
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions test.js
Expand Up @@ -710,13 +710,13 @@ describe('cli', function () {
})

it('does not display `all staged files` without the --commit-all flag', function () {
let result = execCli()
const 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 () {
let result = execCli('--commit-all')
const result = execCli('--commit-all')
result.code.should.equal(0)
result.stdout.should.match(/and all staged files/)
})
Expand Down

0 comments on commit 67f2f15

Please sign in to comment.