From 07e13a8f05f26a75fc6a377711fe85b082e672fb Mon Sep 17 00:00:00 2001 From: Aria Stewart Date: Sun, 29 Dec 2019 17:21:37 -0500 Subject: [PATCH] [eslint] Fix leaking variable in tests --- test/promise_fail.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/test/promise_fail.js b/test/promise_fail.js index f7148cc1..3fa8892a 100644 --- a/test/promise_fail.js +++ b/test/promise_fail.js @@ -17,7 +17,7 @@ tap.test('callback returning rejected promise should cause that test (and only t return tt.pass('the test file indicated it should be skipped'); } - strippedString = stripFullStack(rowsString); + var strippedString = stripFullStack(rowsString); // hack for consistency across all versions of node // some versions produce a longer stack trace for some reason @@ -60,7 +60,7 @@ tap.test('subtest callback returning rejected promise should cause that subtest return tt.pass('the test file indicated it should be skipped'); } - strippedString = stripFullStack(rowsString); + var strippedString = stripFullStack(rowsString); // hack for consistency across all versions of node // some versions produce a longer stack trace for some reason