File tree Expand file tree Collapse file tree 2 files changed +5
-5
lines changed Expand file tree Collapse file tree 2 files changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -505,10 +505,11 @@ export class DocumentSnapshot<
505
505
506
506
toJSON ( ) : object {
507
507
const document = this . _document ;
508
- const result : any = { } ;
508
+ // eslint-disable-next-line @typescript-eslint/no-explicit-any
509
+ const result : any = { } ;
509
510
result [ 'bundle' ] = '' ;
510
511
result [ 'source' ] = 'DocumentSnapshot' ;
511
-
512
+
512
513
if (
513
514
! document ||
514
515
! document . isValidDocument ( ) ||
@@ -698,7 +699,8 @@ export class QuerySnapshot<
698
699
}
699
700
700
701
toJSON ( ) : object {
701
- const result : any = { } ;
702
+ // eslint-disable-next-line @typescript-eslint/no-explicit-any
703
+ const result : any = { } ;
702
704
result [ 'source' ] = 'QuerySnapshot' ;
703
705
const builder : BundleBuilder = new BundleBuilder (
704
706
this . _firestore ,
Original file line number Diff line number Diff line change @@ -101,7 +101,6 @@ apiDescribe('Queries', persistence => {
101
101
expect ( jsonBundle ) . to . not . be . null ;
102
102
// eslint-disable-next-line @typescript-eslint/no-explicit-any
103
103
const json = ( jsonBundle as any ) . bundle ;
104
- console . log ( "DEDB checking if json exists" ) ;
105
104
expect ( json ) . to . exist ;
106
105
expect ( json . length ) . to . be . greaterThan ( 0 ) ;
107
106
@@ -110,7 +109,6 @@ apiDescribe('Queries', persistence => {
110
109
const docRef = doc ( db , path ! ) ;
111
110
await loadBundle ( db , json ) ;
112
111
const docSnap = await getDocFromCache ( docRef ) ;
113
- console . log ( "DEDB checking if docSnap exists" ) ;
114
112
expect ( docSnap . exists ) ;
115
113
expect ( docSnap . data ( ) ) . to . deep . equal ( testDocs . a ) ;
116
114
} ) ;
You can’t perform that action at this time.
0 commit comments