Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

test: use const based on new eslint rules #329

Merged
merged 3 commits into from May 5, 2019
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
5 changes: 4 additions & 1 deletion .travis.yml
@@ -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 'dummy@example.org'
Expand Down
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