1515 *
1616 */
1717
18- const { updateTemplate } = require ( './helpers' ) ;
19-
2018describe ( 'remoteConfig()' , function ( ) {
2119 describe ( 'firebase v8 compatibility' , function ( ) {
2220 beforeEach ( async function beforeEachTest ( ) {
@@ -782,7 +780,7 @@ describe('remoteConfig()', function () {
782780
783781 // If there is orphaned data, delete it on the server and let that settle
784782 if ( staleDeletes . length > 0 ) {
785- const response = await updateTemplate ( {
783+ const response = await FirebaseHelpers . updateRemoteConfigTemplate ( {
786784 operations : {
787785 delete : staleDeletes ,
788786 } ,
@@ -797,7 +795,7 @@ describe('remoteConfig()', function () {
797795
798796 after ( async function ( ) {
799797 // clean up our own test data after the whole suite runs
800- const response = await updateTemplate ( {
798+ const response = await FirebaseHelpers . updateRemoteConfigTemplate ( {
801799 operations : {
802800 delete : [ 'rttest1' + timestamp , 'rttest2' + timestamp , 'rttest3' + timestamp ] ,
803801 } ,
@@ -823,7 +821,7 @@ describe('remoteConfig()', function () {
823821 const unsubscribe = onConfigUpdated ( config , ( event , error ) => callback ( event , error ) ) ;
824822 unsubscribers . push ( unsubscribe ) ;
825823 // Update the template using our cloud function, so our listeners are called
826- let response = await updateTemplate ( {
824+ let response = await FirebaseHelpers . updateRemoteConfigTemplate ( {
827825 operations : {
828826 add : [ { name : 'rttest1' + timestamp , value : timestamp } ] ,
829827 } ,
@@ -858,7 +856,7 @@ describe('remoteConfig()', function () {
858856 unsubscribers . push ( unsubscribe3 ) ;
859857
860858 // Trigger an update that should call them all
861- let response = await updateTemplate ( {
859+ let response = await FirebaseHelpers . updateRemoteConfigTemplate ( {
862860 operations : {
863861 add : [ { name : 'rttest1' + timestamp , value : Date . now ( ) + '' } ] ,
864862 } ,
@@ -887,7 +885,7 @@ describe('remoteConfig()', function () {
887885 const callback2Count = callback2 . callCount ;
888886
889887 // Trigger update that should call listener 1 and 3 for these values
890- response = await updateTemplate ( {
888+ response = await FirebaseHelpers . updateRemoteConfigTemplate ( {
891889 operations : {
892890 add : [ { name : 'rttest2' + timestamp , value : Date . now ( ) + '' } ] ,
893891 } ,
@@ -916,7 +914,7 @@ describe('remoteConfig()', function () {
916914 const callback3Count = callback3 . callCount ;
917915
918916 // Trigger an update that should call no listeners
919- response = await updateTemplate ( {
917+ response = await FirebaseHelpers . updateRemoteConfigTemplate ( {
920918 operations : {
921919 add : [ { name : 'rttest3' + timestamp , value : Date . now ( ) + '' } ] ,
922920 } ,
0 commit comments