File tree Expand file tree Collapse file tree 1 file changed +5
-1
lines changed
packages/firestore/test/integration/api Expand file tree Collapse file tree 1 file changed +5
-1
lines changed Original file line number Diff line number Diff line change @@ -64,6 +64,7 @@ import {
6464 toChangesArray ,
6565 toDataArray ,
6666 PERSISTENCE_MODE_UNSPECIFIED ,
67+ withAlternateTestDb ,
6768 withEmptyTestCollection ,
6869 withRetry ,
6970 withTestCollection ,
@@ -76,7 +77,7 @@ import { captureExistenceFilterMismatches } from '../util/testing_hooks_util';
7677apiDescribe ( 'Queries' , persistence => {
7778 addEqualityMatcher ( ) ;
7879
79- it ( 'QuerySnapshot.toJSON bundle getDocFromCache' , async ( ) => {
80+ it ( 'DDB4 local QuerySnapshot.toJSON bundle getDocFromCache' , async ( ) => {
8081 let path : string | null = null ;
8182 let jsonBundle : object | null = null ;
8283 const testDocs = {
@@ -99,6 +100,7 @@ apiDescribe('Queries', persistence => {
99100 } ) ;
100101 } ) ;
101102 expect ( jsonBundle ) . to . not . be . null ;
103+ console . log ( "DEDB json bundle: " , jsonBundle ) ;
102104 // eslint-disable-next-line @typescript-eslint/no-explicit-any
103105 const json = ( jsonBundle as any ) . bundle ;
104106 expect ( json ) . to . exist ;
@@ -111,6 +113,8 @@ apiDescribe('Queries', persistence => {
111113 const docSnap = await getDocFromCache ( docRef ) ;
112114 expect ( docSnap . exists ) ;
113115 expect ( docSnap . data ( ) ) . to . deep . equal ( testDocs . a ) ;
116+ console . log ( "DEDB metadata.fromCache: " , docSnap . metadata . fromCache ) ;
117+ //expect(docSnap.metadata.fromCache).to.be.true;
114118 } ) ;
115119 } ) ;
116120
You can’t perform that action at this time.
0 commit comments