@@ -848,17 +848,17 @@ describe('functions() modular', function () {
848848 } ) ;
849849 return { events, done, stop } ;
850850 }
851-
851+
852852 it ( 'httpsCallable(name).stream() emits chunks and ends with done' , async function ( ) {
853853 const { getApp } = modular ;
854854 const { getFunctions, httpsCallable, connectFunctionsEmulator } = functionsModular ;
855-
855+
856856 const region = 'us-central1' ;
857857 const fnName = 'helloWorldV2' ;
858858 const fns = getFunctions ( getApp ( ) , region ) ;
859859 connectFunctionsEmulator ( fns , 'localhost' , 5001 ) ;
860860 const callable = httpsCallable ( fns , fnName ) ;
861-
861+
862862 const { done } = collectStream ( callable ) ;
863863 const all = await done ;
864864 all . length . should . be . greaterThan ( 0 ) ;
@@ -867,19 +867,19 @@ describe('functions() modular', function () {
867867 firstChunk . text . should . containEql ( 'Hello from Firebase!' ) ;
868868 all [ all . length - 1 ] . done . should . eql ( true ) ;
869869 } ) ;
870-
870+
871871 it ( 'httpsCallableFromUrl(url).stream() emits chunks and ends with done' , async function ( ) {
872872 const { getApp } = modular ;
873873 const { getFunctions, httpsCallableFromUrl } = functionsModular ;
874-
874+
875875 let hostname = 'localhost' ;
876876 if ( Platform . android ) {
877877 hostname = '10.0.2.2' ;
878878 }
879879 const url = `http://${ hostname } :5001/react-native-firebase-testing/us-central1/helloWorldV2` ;
880880 const fns = getFunctions ( getApp ( ) ) ;
881881 const callableFromUrl = httpsCallableFromUrl ( fns , url ) ;
882-
882+
883883 const { done } = collectStream ( callableFromUrl ) ;
884884 const all = await done ;
885885 all . length . should . be . greaterThan ( 0 ) ;
0 commit comments