File tree Expand file tree Collapse file tree 1 file changed +14
-0
lines changed
packages/firestore/test/unit/specs Expand file tree Collapse file tree 1 file changed +14
-0
lines changed Original file line number Diff line number Diff line change @@ -178,6 +178,10 @@ import {
178
178
QueryEvent ,
179
179
SharedWriteTracker
180
180
} from './spec_test_components' ;
181
+ import {
182
+ IndexedDbIndexManager ,
183
+ indexedDbIndexManagerInstallFieldIndexPlugin
184
+ } from '../../../src/local/indexeddb_index_manager' ;
181
185
182
186
use ( chaiExclude ) ;
183
187
@@ -991,6 +995,16 @@ abstract class TestRunner {
991
995
expect ( this . started ) . to . equal ( ! expectedState . isShutdown ) ;
992
996
}
993
997
if ( 'indexes' in expectedState ) {
998
+ if ( ! ( this . localStore . indexManager instanceof IndexedDbIndexManager ) ) {
999
+ throw new Error (
1000
+ 'localStore.indexManager should be ' +
1001
+ 'an instance of IndexedDbIndexManager'
1002
+ ) ;
1003
+ }
1004
+ indexedDbIndexManagerInstallFieldIndexPlugin (
1005
+ this . localStore . indexManager
1006
+ ) ;
1007
+
994
1008
const fieldIndexes : FieldIndex [ ] =
995
1009
await this . persistence . runTransaction (
996
1010
'getFieldIndexes ' ,
You can’t perform that action at this time.
0 commit comments