From 32855f422e45365ece3b80ab180787a8644e937c 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 363d07f89..2608fa562 100644 --- a/test.js +++ b/test.js @@ -668,13 +668,13 @@ describe('cli', function () { }) it('does not display `all staged files` without the --commit-all flag', function () { - var 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 () { - var result = execCli('--commit-all') + const result = execCli('--commit-all') result.code.should.equal(0) result.stdout.should.match(/and all staged files/) })