@@ -364,7 +364,7 @@ describe('Database@exp Tests', () => {
364
364
child1 : 'test1' ,
365
365
child2 : 'test2'
366
366
} ;
367
- writeAndValidate ( writerRef , readerRef , toWrite , ec ) ;
367
+ await writeAndValidate ( writerRef , readerRef , toWrite , ec ) ;
368
368
const q = query ( readerRef , limitToFirst ( 1 ) ) ;
369
369
const snapshot = await get ( q ) ;
370
370
const expected = {
@@ -382,7 +382,7 @@ describe('Database@exp Tests', () => {
382
382
child3 : 'test3'
383
383
} ;
384
384
let ec = EventAccumulatorFactory . waitsForExactCount ( 1 ) ;
385
- writeAndValidate ( writerRef , readerRef , toWrite , ec ) ;
385
+ await writeAndValidate ( writerRef , readerRef , toWrite , ec ) ;
386
386
ec = EventAccumulatorFactory . waitsForExactCount ( 1 ) ;
387
387
const child1Ref = child ( readerRef , 'child1' ) ;
388
388
onValue ( child1Ref , snapshot => {
@@ -423,7 +423,7 @@ describe('Database@exp Tests', () => {
423
423
expect ( snapshot . val ( ) ) . to . deep . eq ( toWrite ) ;
424
424
} ) ;
425
425
426
- it ( 'should test startAt get with listener only fires once' , async ( ) => {
426
+ it . only ( 'should test startAt get with listener only fires once' , async ( ) => {
427
427
const db = getDatabase ( defaultApp ) ;
428
428
const { readerRef, writerRef } = getRWRefs ( db ) ;
429
429
const expected = {
@@ -432,7 +432,7 @@ describe('Database@exp Tests', () => {
432
432
child3 : 'test3'
433
433
} ;
434
434
const ec = EventAccumulatorFactory . waitsForExactCount ( 1 ) ;
435
- writeAndValidate ( writerRef , readerRef , expected , ec ) ;
435
+ await writeAndValidate ( writerRef , readerRef , expected , ec ) ;
436
436
const q = query ( readerRef , orderByKey ( ) , startAt ( 'child2' ) ) ;
437
437
const snapshot = await get ( q ) ;
438
438
const expectedQRes = {
0 commit comments