@@ -1159,7 +1159,6 @@ describe("firestore", () => {
1159
1159
} ) ;
1160
1160
1161
1161
describe ( "aggregate queries" , ( ) => {
1162
- < << << << HEAD
1163
1162
it ( "should fetch the count of documents in a collection" , async ( ) => {
1164
1163
const { collection, getCountFromServer } = require ( "firebase/firestore" ) ;
1165
1164
// [START count_aggregate_collection]
@@ -1178,24 +1177,6 @@ describe("firestore", () => {
1178
1177
console . log ( 'count: ' , snapshot . data ( ) . count ) ;
1179
1178
// [END count_aggregate_query]
1180
1179
} ) ;
1181
- = === ===
1182
- it ( "should fetch the count of documents in a collection" , async ( ) => {
1183
- // [START count_aggregate_collection]
1184
- const coll = collection ( db , "cities" ) ;
1185
- const snapshot = await getCountFromServer ( coll ) ;
1186
- console . log ( 'count: ' , snapshot . data ( ) . count ) ;
1187
- // [END count_aggregate_collection]
1188
- } ) ;
1189
-
1190
- it ( "should fetch the count of documents in a query" , async ( ) => {
1191
- // [START count_aggregate_query]
1192
- const coll = collection ( db , "cities" ) ;
1193
- const query = query ( coll , where ( "state" , "==" , "CA" ) ) ;
1194
- const snapshot = await getCountFromServer ( query ) ;
1195
- console . log ( 'count: ' , snapshot . data ( ) . count ) ;
1196
- // [END count_aggregate_query]
1197
- } ) ;
1198
- > >>> >>> 09 d36f3 ( add simpler snippet )
1199
1180
} ) ;
1200
1181
1201
1182
// TODO: Break out into separate file
0 commit comments