File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -2460,7 +2460,7 @@ describe('Query Tests', function() {
2460
2460
it ( "Cache doesn't remove items that have fallen out of view." , async function ( ) {
2461
2461
var refPair = getRandomNode ( 2 ) , readRef = refPair [ 0 ] , writeRef = refPair [ 1 ] ;
2462
2462
2463
- const ea = EventAccumulatorFactory . waitsForCount ( 1 ) ;
2463
+ let ea = EventAccumulatorFactory . waitsForCount ( 1 ) ;
2464
2464
var readVal ;
2465
2465
readRef . limitToLast ( 2 ) . on ( 'value' , function ( s ) {
2466
2466
readVal = s . val ( ) ;
@@ -2470,7 +2470,7 @@ describe('Query Tests', function() {
2470
2470
await ea . promise ;
2471
2471
expect ( readVal ) . to . be . null ;
2472
2472
2473
- ea . reset ( 4 ) ;
2473
+ ea = EventAccumulatorFactory . waitsForCount ( 4 )
2474
2474
for ( var i = 0 ; i < 4 ; i ++ ) {
2475
2475
writeRef . child ( 'k' + i ) . set ( i ) ;
2476
2476
}
@@ -2480,7 +2480,7 @@ describe('Query Tests', function() {
2480
2480
await pause ( 500 ) ;
2481
2481
expect ( readVal ) . to . deep . equal ( { 'k2' : 2 , 'k3' : 3 } ) ;
2482
2482
2483
- ea . reset ( 1 ) ;
2483
+ ea = EventAccumulatorFactory . waitsForCount ( 1 )
2484
2484
writeRef . remove ( ) ;
2485
2485
2486
2486
await ea . promise ;
You can’t perform that action at this time.
0 commit comments