File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -37,13 +37,13 @@ function waitFor(
37
37
} ,
38
38
} ,
39
39
) {
40
- if ( typeof callback !== 'function' ) {
40
+ if ( typeof originalCallback !== 'function' ) {
41
41
throw new TypeError ( 'Received `callback` arg must be a function' )
42
42
}
43
43
44
44
// callback will be replaced by a noop function as soon as it finishes
45
45
// to prevent callback leaking calls
46
- let callback = originalCallback ;
46
+ let callback = originalCallback
47
47
48
48
return new Promise ( async ( resolve , reject ) => {
49
49
let lastError , intervalId , observer
@@ -111,7 +111,7 @@ function waitFor(
111
111
112
112
function onDone ( error , result ) {
113
113
finished = true
114
- callback = ( ) => { } ;
114
+ callback = ( ) => { }
115
115
clearTimeout ( overallTimeoutTimer )
116
116
117
117
if ( ! usingJestFakeTimers ) {
You can’t perform that action at this time.
0 commit comments