File tree 2 files changed +1
-16
lines changed
2 files changed +1
-16
lines changed Original file line number Diff line number Diff line change @@ -455,11 +455,7 @@ class Firestore {
455
455
* for existing documents, otherwise a DocumentSnapshot.
456
456
*/
457
457
snapshot_ ( documentOrName , readTime , encoding ) {
458
- if ( ! this . _initalizationSettings . projectId ) {
459
- throw new Error (
460
- 'Cannot use `snapshot_()` without a Project ID. Please provide a ' +
461
- 'Project ID via `Firestore.settings()`.' ) ;
462
- }
458
+ // TODO: Assert that Firestore Project ID is valid.
463
459
464
460
let convertTimestamp ;
465
461
let convertDocument ;
Original file line number Diff line number Diff line change @@ -540,17 +540,6 @@ describe('snapshot_() method', function() {
540
540
} ) ;
541
541
} ) ;
542
542
543
- it ( 'validates Project ID provided' , function ( ) {
544
- firestore = new Firestore ( {
545
- sslCreds : grpc . credentials . createInsecure ( ) ,
546
- keyFilename : './test/fake-certificate.json'
547
- } ) ;
548
-
549
- assert . throws (
550
- ( ) => firestore . snapshot_ ( ) ,
551
- / C a n n o t u s e ` s n a p s h o t _ \( \) ` w i t h o u t a P r o j e c t I D . P l e a s e p r o v i d e a P r o j e c t I D v i a ` F i r e s t o r e .s e t t i n g s \( \) ` ./ ) ;
552
- } ) ;
553
-
554
543
it ( 'handles ProtobufJS' , function ( ) {
555
544
let doc = firestore . snapshot_ (
556
545
document ( 'doc' , {
You can’t perform that action at this time.
0 commit comments