Skip to content

Commit

Permalink
Fix unbound reference to clearTimeout
Browse files Browse the repository at this point in the history
Test code should be able to stuck the global clearTimeout() without breaking AVA.
  • Loading branch information
novemberborn committed Mar 3, 2019
1 parent 334e15b commit 40f331c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/test.js
Original file line number Diff line number Diff line change
Expand Up @@ -278,7 +278,7 @@ class Test {
}

clearTimeout() {
clearTimeout(this.timeoutTimer);
nowAndTimers.clearTimeout(this.timeoutTimer);
this.timeoutTimer = null;
}

Expand Down

0 comments on commit 40f331c

Please # to comment.