From 5a46b5ae2bd6dd46aad41e51815bb204c23359ba Mon Sep 17 00:00:00 2001 From: Joe Bottigliero Date: Sat, 27 Apr 2019 13:43:42 -0500 Subject: [PATCH] test: use const based on new eslint rules This was caused by tests in #320 using `var` and being merged into the trunk (as-is) just before the new eslint rules (#321) --- test.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/test.js b/test.js index d0ca25e55..0054a2419 100644 --- a/test.js +++ b/test.js @@ -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/) })