@@ -1171,7 +1171,6 @@ describe("firestore", () => {
11711171 } ) ;
11721172
11731173 describe ( "aggregate queries" , ( ) => {
1174- < << << << HEAD
11751174 it ( "should fetch the count of documents in a collection" , async ( ) => {
11761175 const { collection, getCountFromServer } = require ( "firebase/firestore" ) ;
11771176 // [START count_aggregate_collection]
@@ -1190,24 +1189,6 @@ describe("firestore", () => {
11901189 console . log ( 'count: ' , snapshot . data ( ) . count ) ;
11911190 // [END count_aggregate_query]
11921191 } ) ;
1193- = === ===
1194- it ( "should fetch the count of documents in a collection" , async ( ) => {
1195- // [START count_aggregate_collection]
1196- const coll = collection ( db , "cities" ) ;
1197- const snapshot = await getCountFromServer ( coll ) ;
1198- console . log ( 'count: ' , snapshot . data ( ) . count ) ;
1199- // [END count_aggregate_collection]
1200- } ) ;
1201-
1202- it ( "should fetch the count of documents in a query" , async ( ) => {
1203- // [START count_aggregate_query]
1204- const coll = collection ( db , "cities" ) ;
1205- const query = query ( coll , where ( "state" , "==" , "CA" ) ) ;
1206- const snapshot = await getCountFromServer ( query ) ;
1207- console . log ( 'count: ' , snapshot . data ( ) . count ) ;
1208- // [END count_aggregate_query]
1209- } ) ;
1210- > >>> >>> 09 d36f3 ( add simpler snippet )
12111192 } ) ;
12121193
12131194 // TODO: Break out into separate file
0 commit comments