Skip to content

Commit

Permalink
[eslint] Fix leaking variable in tests
Browse files Browse the repository at this point in the history
  • Loading branch information
aredridel authored and ljharb committed Dec 29, 2019
1 parent 03529a9 commit 07e13a8
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions test/promise_fail.js
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand Down

0 comments on commit 07e13a8

Please sign in to comment.