File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
packages/storage/test/unit Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -501,12 +501,12 @@ describe('Firebase Storage > Upload Task', () => {
501
501
502
502
let gotFirstEvent = false ;
503
503
504
- const stub = sinon . stub ( window , 'setTimeout' ) ;
504
+ const stub = sinon . stub ( global , 'setTimeout' ) ;
505
505
506
506
// Function that notifies when we are in the middle of an exponential backoff
507
507
const readyToCancel = new Promise < null > ( resolve => {
508
- // @ts -ignore The types for `stub.callsFake` is incompatible with types of `clock.setTimeout`
509
508
stub . callsFake ( ( fn , timeout ) => {
509
+ // @ts -ignore The types for `stub.callsFake` is incompatible with types of `clock.setTimeout`
510
510
const res = fakeSetTimeout ( fn , timeout ) ;
511
511
if ( timeout !== DEFAULT_MAX_UPLOAD_RETRY_TIME ) {
512
512
if ( ! gotFirstEvent || timeout === 0 ) {
You can’t perform that action at this time.
0 commit comments