Skip to content

Commit bcf02eb

Browse files
committed
fix: format
1 parent 2a0656b commit bcf02eb

File tree

2 files changed

+8
-19
lines changed

2 files changed

+8
-19
lines changed

packages/functions/e2e/functions.e2e.js

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -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);

packages/functions/lib/web/RNFBFunctionsModule.js

Lines changed: 2 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -144,14 +144,7 @@ export default {
144144
* Signature:
145145
* (appName, regionOrCustomDomain, host, port, name, listenerId)
146146
*/
147-
async httpsCallableStream(
148-
appName,
149-
regionOrCustomDomain,
150-
host,
151-
port,
152-
name,
153-
listenerId,
154-
) {
147+
async httpsCallableStream(appName, regionOrCustomDomain, host, port, name, listenerId) {
155148
const fetchImpl = typeof fetch === 'function' ? fetch : null;
156149
if (!fetchImpl) {
157150
emitStreamingEvent(appName, listenerId, { error: 'fetch_not_available' });
@@ -226,11 +219,7 @@ export default {
226219
* Signature:
227220
* (appName, url, listenerId)
228221
*/
229-
async httpsCallableStreamFromUrl(
230-
appName,
231-
url,
232-
listenerId,
233-
) {
222+
async httpsCallableStreamFromUrl(appName, url, listenerId) {
234223
const fetchImpl = typeof fetch === 'function' ? fetch : null;
235224
if (!fetchImpl) {
236225
emitStreamingEvent(appName, listenerId, { error: 'fetch_not_available' });

0 commit comments

Comments
 (0)