Skip to content

Commit 717e9fc

Browse files
Tests
1 parent 723c0c1 commit 717e9fc

File tree

2 files changed

+4
-5
lines changed

2 files changed

+4
-5
lines changed

packages/firestore/src/core/component_provider.ts

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -335,8 +335,7 @@ export class MultiTabIndexedDbComponentProvider extends IndexedDbComponentProvid
335335
cfg.clientId,
336336
cfg.initialUser
337337
);
338-
} else {
339-
return new MemorySharedClientState();
340338
}
339+
return new MemorySharedClientState();
341340
}
342341
}

packages/firestore/test/unit/specs/spec_test_components.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -17,8 +17,8 @@
1717

1818
import {
1919
ComponentConfiguration,
20-
IndexedDbComponentProvider,
21-
MemoryComponentProvider
20+
MemoryComponentProvider,
21+
MultiTabIndexedDbComponentProvider
2222
} from '../../../src/core/component_provider';
2323
import {
2424
GarbageCollectionScheduler,
@@ -114,7 +114,7 @@ function failTransactionIfNeeded(
114114
}
115115
}
116116

117-
export class MockIndexedDbComponentProvider extends IndexedDbComponentProvider {
117+
export class MockIndexedDbComponentProvider extends MultiTabIndexedDbComponentProvider {
118118
persistence!: MockIndexedDbPersistence;
119119

120120
constructor(

0 commit comments

Comments
 (0)