File tree Expand file tree Collapse file tree 2 files changed +6
-2
lines changed Expand file tree Collapse file tree 2 files changed +6
-2
lines changed Original file line number Diff line number Diff line change @@ -1290,7 +1290,7 @@ apiDescribe('Queries', (persistence: boolean) => {
1290
1290
} ) ;
1291
1291
1292
1292
// eslint-disable-next-line no-restricted-properties
1293
- ( persistence ? it . only : it . skip ) ( 'empty query results are cached' , ( ) => {
1293
+ ( persistence ? it : it . skip ) ( 'empty query results are cached' , ( ) => {
1294
1294
// Reproduces https://github.com/firebase/firebase-js-sdk/issues/5873
1295
1295
return withTestCollection ( persistence , { } , async coll => {
1296
1296
const snapshot1 = await getDocs ( coll ) ; // Populate the cache
Original file line number Diff line number Diff line change @@ -43,6 +43,7 @@ import {
43
43
import { DocumentKeySet } from '../../src/model/collections' ;
44
44
import { DocumentSet } from '../../src/model/document_set' ;
45
45
import { JsonObject } from '../../src/model/object_value' ;
46
+ import { ByteString } from '../../src/util/byte_string' ;
46
47
import { TEST_PROJECT } from '../unit/local/persistence_test_helpers' ;
47
48
48
49
import { doc , key , path as pathFrom } from './helpers' ;
@@ -144,6 +145,8 @@ export function querySnapshot(
144
145
newDocuments = newDocuments . add ( docToAdd ) ;
145
146
documentChanges . push ( { type : ChangeType . Added , doc : docToAdd } ) ;
146
147
} ) ;
148
+ const resumeToken = ByteString . EMPTY_BYTE_STRING ;
149
+
147
150
const viewSnapshot : ViewSnapshot = new ViewSnapshot (
148
151
query ,
149
152
newDocuments ,
@@ -152,7 +155,8 @@ export function querySnapshot(
152
155
mutatedKeys ,
153
156
fromCache ,
154
157
syncStateChanged ,
155
- false
158
+ false ,
159
+ resumeToken
156
160
) ;
157
161
const db = firestore ( ) ;
158
162
return new QuerySnapshot (
You can’t perform that action at this time.
0 commit comments