Skip to content

Commit 195d508

Browse files
committed
Fixed windowd error
1 parent 6f49afc commit 195d508

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

packages/storage/test/unit/task.test.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -501,12 +501,12 @@ describe('Firebase Storage > Upload Task', () => {
501501

502502
let gotFirstEvent = false;
503503

504-
const stub = sinon.stub(window, 'setTimeout');
504+
const stub = sinon.stub(global, 'setTimeout');
505505

506506
// Function that notifies when we are in the middle of an exponential backoff
507507
const readyToCancel = new Promise<null>(resolve => {
508-
// @ts-ignore The types for `stub.callsFake` is incompatible with types of `clock.setTimeout`
509508
stub.callsFake((fn, timeout) => {
509+
// @ts-ignore The types for `stub.callsFake` is incompatible with types of `clock.setTimeout`
510510
const res = fakeSetTimeout(fn, timeout);
511511
if (timeout !== DEFAULT_MAX_UPLOAD_RETRY_TIME) {
512512
if (!gotFirstEvent || timeout === 0) {

0 commit comments

Comments
 (0)