File tree Expand file tree Collapse file tree 1 file changed +0
-20
lines changed
packages/database/test/exp Expand file tree Collapse file tree 1 file changed +0
-20
lines changed Original file line number Diff line number Diff line change @@ -403,26 +403,6 @@ describe('Database@exp Tests', () => {
403
403
expect ( snapshot . val ( ) ) . to . deep . eq ( expected ) ;
404
404
} ) ;
405
405
406
- it ( 'should test get with limitTo listener only fires once' , async ( ) => {
407
- const db = getDatabase ( defaultApp ) ;
408
- const { readerRef, writerRef } = getRWRefs ( db ) ;
409
- const readQuery = query ( readerRef , limitToFirst ( 1 ) ) ;
410
- const toWrite = {
411
- child1 : 'test1' ,
412
- child2 : 'test2'
413
- } ;
414
- await set ( writerRef , toWrite ) ;
415
- const ec = EventAccumulatorFactory . waitsForExactCount ( 1 ) ;
416
- onValue ( readQuery , snapshot => {
417
- ec . addEvent ( snapshot ) ;
418
- } ) ;
419
- const events = await ec . promise ;
420
- const expected = { child1 : 'test1' } ;
421
- expect ( events [ 0 ] . val ( ) ) . to . deep . eq ( expected ) ;
422
- const snapshot = await get ( readerRef ) ;
423
- expect ( snapshot . val ( ) ) . to . deep . eq ( toWrite ) ;
424
- } ) ;
425
-
426
406
it ( 'should test startAt get with listener only fires once' , async ( ) => {
427
407
const db = getDatabase ( defaultApp ) ;
428
408
const { readerRef, writerRef } = getRWRefs ( db ) ;
You can’t perform that action at this time.
0 commit comments