Skip to content
This repository was archived by the owner on Jul 30, 2020. It is now read-only.

Commit 5ea9f66

Browse files
committed
fix: callback sometimes doesn't execute in coverage because of async
1 parent 1e1b0f2 commit 5ea9f66

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/wait-for-element-to-be-removed.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,7 @@ function waitForElementToBeRemoved(callback, { container, interval = 50, timeout
2626
function onDone(error, result) {
2727
const setImmediate = getSetImmediate();
2828
clearTimeout(timer);
29+
/* istanbul ignore next */
2930
setImmediate(() => clearTimeout(observer));
3031
if (error) {
3132
reject(error);

0 commit comments

Comments
 (0)