@@ -2328,16 +2328,16 @@ describe('countQuery()', () => {
2328
2328
const countQuery_ = countQuery ( query ( collection ) ) ;
2329
2329
2330
2330
//This will pass
2331
- // const snapshot = getAggregateFromServerDirect(countQuery_)
2331
+ // const promise = getAggregateFromServerDirect(countQuery_)
2332
2332
// await terminate(collection.firestore)
2333
- // expect((await snapshot ).getCount()).to.equal(3);
2333
+ // expect((await promise ).getCount()).to.equal(3);
2334
2334
2335
2335
//this will pass
2336
- // const [snapshot ,voidResult] = await Promise.all([
2336
+ // const [promise ,voidResult] = await Promise.all([
2337
2337
// getAggregateFromServerDirect(countQuery_),
2338
2338
// terminate(collection.firestore),
2339
2339
// ])
2340
- // expect(snapshot .getCount()).to.equal(3);
2340
+ // expect(promise .getCount()).to.equal(3);
2341
2341
2342
2342
//if terminate comes first, it will throw error
2343
2343
// expect(() => Promise.all([
@@ -2348,13 +2348,14 @@ describe('countQuery()', () => {
2348
2348
// );
2349
2349
2350
2350
// not sure why, this is not getting to the "then" block
2351
+ // and therefore it is not checking the "expect" at all
2351
2352
Promise . all ( [
2352
2353
getAggregateFromServerDirect ( countQuery_ ) ,
2353
2354
terminate ( collection . firestore )
2354
2355
] )
2355
- . then ( ( [ snapshot , voidResult ] ) => {
2356
- console . log ( 'snapshot' , snapshot ) ;
2357
- expect ( snapshot . getCount ( ) ) . to . equal ( 100 ) ;
2356
+ . then ( ( [ promise , voidResult ] ) => {
2357
+ console . log ( 'snapshot' , promise ) ;
2358
+ expect ( promise . getCount ( ) ) . to . equal ( 100 ) ;
2358
2359
} )
2359
2360
. catch ( e => {
2360
2361
expect ( ( e as Error ) ?. message ) . to . equal (
0 commit comments