@@ -415,8 +415,6 @@ describe('database()...snapshot', function () {
415415 } ) ;
416416
417417 it ( 'forEach works with objects and cancels when returning true' , async function ( ) {
418- // @ts -ignore
419- globalThis . RNFB_SILENCE_MODULAR_DEPRECATION_WARNINGS = true ;
420418 const { getDatabase, ref, child, orderByKey, query, get } = databaseModular ;
421419
422420 const callback = sinon . spy ( ) ;
@@ -432,8 +430,6 @@ describe('database()...snapshot', function () {
432430 } ) ;
433431
434432 callback . should . be . calledOnce ( ) ;
435- // @ts -ignore
436- globalThis . RNFB_SILENCE_MODULAR_DEPRECATION_WARNINGS = false ;
437433 } ) ;
438434
439435 it ( 'forEach works with arrays and cancels when returning true' , async function ( ) {
@@ -471,8 +467,6 @@ describe('database()...snapshot', function () {
471467 } ) ;
472468
473469 it ( 'forEach cancels iteration when returning true' , async function ( ) {
474- // @ts -ignore
475- globalThis . RNFB_SILENCE_MODULAR_DEPRECATION_WARNINGS = true ;
476470 const { getDatabase, ref, child, orderByValue, query, get } = databaseModular ;
477471
478472 const callback = sinon . spy ( ) ;
@@ -488,8 +482,6 @@ describe('database()...snapshot', function () {
488482 cancelled . should . equal ( true ) ;
489483 callback . should . be . callCount ( 1 ) ;
490484 callback . getCall ( 0 ) . args [ 0 ] . should . equal ( 0 ) ;
491- // @ts -ignore
492- globalThis . RNFB_SILENCE_MODULAR_DEPRECATION_WARNINGS = false ;
493485 } ) ;
494486
495487 it ( 'getPriority returns the correct value' , async function ( ) {
0 commit comments