File tree Expand file tree Collapse file tree 2 files changed +7
-0
lines changed
test/integration/typescript/src Expand file tree Collapse file tree 2 files changed +7
-0
lines changed Original file line number Diff line number Diff line change @@ -413,6 +413,8 @@ declare namespace admin.storage {
413
413
}
414
414
415
415
declare namespace admin . firestore {
416
+ export import DocumentReference = _firestore . DocumentReference ;
417
+ export import DocumentSnapshot = _firestore . DocumentSnapshot ;
416
418
export import FieldPath = _firestore . FieldPath ;
417
419
export import FieldValue = _firestore . FieldValue ;
418
420
export import Firestore = _firestore . Firestore ;
Original file line number Diff line number Diff line change @@ -64,4 +64,9 @@ describe('Init App', () => {
64
64
const fieldValue = admin . firestore . FieldValue ;
65
65
expect ( fieldValue ) . to . not . be . null ;
66
66
} ) ;
67
+
68
+ it ( 'Should return a DocumentReference' , ( ) => {
69
+ const ref : admin . firestore . DocumentReference = admin . firestore ( app ) . collection ( 'test' ) . doc ( ) ;
70
+ expect ( ref ) . to . not . be . null ;
71
+ } ) ;
67
72
} ) ;
You can’t perform that action at this time.
0 commit comments