Skip to content

Commit

Permalink
test: use const based on new eslint rules (#329)
Browse files Browse the repository at this point in the history
  • Loading branch information
jbottigliero authored and bcoe committed May 5, 2019
1 parent 00e3381 commit b6d3d13
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 deletions.
5 changes: 4 additions & 1 deletion .travis.yml
Original file line number Diff line number Diff line change
@@ -1,8 +1,11 @@
language: node_js
os:
- linux
- windows
node_js:
- "6"
- "10"
- "stable"
- "node"
before_script:
- git config --global user.name 'Travis-CI'
- git config --global user.email '[email protected]'
Expand Down
4 changes: 2 additions & 2 deletions test.js
Original file line number Diff line number Diff line change
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 b6d3d13

Please sign in to comment.