@@ -90,7 +90,7 @@ class IntegrationTests: XCTestCase {
90
90
let byName = functions. httpsCallable ( " dataTest " ,
91
91
requestAs: DataTestRequest . self,
92
92
responseAs: DataTestResponse . self)
93
- let byURL = functions. httpsCallable ( url : emulatorURL ( " dataTest " ) ,
93
+ let byURL = functions. httpsCallable ( emulatorURL ( " dataTest " ) ,
94
94
requestAs: DataTestRequest . self,
95
95
responseAs: DataTestResponse . self)
96
96
@@ -129,7 +129,7 @@ class IntegrationTests: XCTestCase {
129
129
let byName = functions. httpsCallable ( " dataTest " ,
130
130
requestAs: DataTestRequest . self,
131
131
responseAs: DataTestResponse . self)
132
- let byUrl = functions. httpsCallable ( url : emulatorURL ( " dataTest " ) ,
132
+ let byUrl = functions. httpsCallable ( emulatorURL ( " dataTest " ) ,
133
133
requestAs: DataTestRequest . self,
134
134
responseAs: DataTestResponse . self)
135
135
@@ -152,7 +152,7 @@ class IntegrationTests: XCTestCase {
152
152
responseAs: Int . self
153
153
)
154
154
let byURL = functions. httpsCallable (
155
- url : emulatorURL ( " scalarTest " ) ,
155
+ emulatorURL ( " scalarTest " ) ,
156
156
requestAs: Int16 . self,
157
157
responseAs: Int . self
158
158
)
@@ -180,7 +180,7 @@ class IntegrationTests: XCTestCase {
180
180
responseAs: Int . self
181
181
)
182
182
let byURL = functions. httpsCallable (
183
- url : emulatorURL ( " scalarTest " ) ,
183
+ emulatorURL ( " scalarTest " ) ,
184
184
requestAs: Int16 . self,
185
185
responseAs: Int . self
186
186
)
@@ -194,7 +194,7 @@ class IntegrationTests: XCTestCase {
194
194
@available ( iOS 13 , tvOS 13 , macOS 10 . 15 , macCatalyst 13 , watchOS 7 , * )
195
195
func testScalarAsyncAlternateSignature( ) async throws {
196
196
let byName : Callable < Int16 , Int > = functions. httpsCallable ( " scalarTest " )
197
- let byURL : Callable < Int16 , Int > = functions. httpsCallable ( url : emulatorURL ( " scalarTest " ) )
197
+ let byURL : Callable < Int16 , Int > = functions. httpsCallable ( emulatorURL ( " scalarTest " ) )
198
198
for function in [ byName, byURL] {
199
199
let result = try await function. call ( 17 )
200
200
XCTAssertEqual ( result, 76 )
@@ -221,7 +221,7 @@ class IntegrationTests: XCTestCase {
221
221
responseAs: [ String : Int ] . self
222
222
)
223
223
let byURL = functions. httpsCallable (
224
- url : emulatorURL ( " tokenTest " ) ,
224
+ emulatorURL ( " tokenTest " ) ,
225
225
requestAs: [ String : Int ] . self,
226
226
responseAs: [ String : Int ] . self
227
227
)
@@ -261,7 +261,7 @@ class IntegrationTests: XCTestCase {
261
261
responseAs: [ String : Int ] . self
262
262
)
263
263
let byURL = functions. httpsCallable (
264
- url : emulatorURL ( " tokenTest " ) ,
264
+ emulatorURL ( " tokenTest " ) ,
265
265
requestAs: [ String : Int ] . self,
266
266
responseAs: [ String : Int ] . self
267
267
)
@@ -280,7 +280,7 @@ class IntegrationTests: XCTestCase {
280
280
responseAs: [ String : Int ] . self
281
281
)
282
282
let byURL = functions. httpsCallable (
283
- url : emulatorURL ( " FCMTokenTest " ) ,
283
+ emulatorURL ( " FCMTokenTest " ) ,
284
284
requestAs: [ String : Int ] . self,
285
285
responseAs: [ String : Int ] . self
286
286
)
@@ -308,7 +308,7 @@ class IntegrationTests: XCTestCase {
308
308
responseAs: [ String : Int ] . self
309
309
)
310
310
let byURL = functions. httpsCallable (
311
- url : emulatorURL ( " FCMTokenTest " ) ,
311
+ emulatorURL ( " FCMTokenTest " ) ,
312
312
requestAs: [ String : Int ] . self,
313
313
responseAs: [ String : Int ] . self
314
314
)
@@ -327,7 +327,7 @@ class IntegrationTests: XCTestCase {
327
327
responseAs: Int ? . self
328
328
)
329
329
let byURL = functions. httpsCallable (
330
- url : emulatorURL ( " nullTest " ) ,
330
+ emulatorURL ( " nullTest " ) ,
331
331
requestAs: Int ? . self,
332
332
responseAs: Int ? . self
333
333
)
@@ -355,7 +355,7 @@ class IntegrationTests: XCTestCase {
355
355
responseAs: Int ? . self
356
356
)
357
357
let byURL = functions. httpsCallable (
358
- url : emulatorURL ( " nullTest " ) ,
358
+ emulatorURL ( " nullTest " ) ,
359
359
requestAs: Int ? . self,
360
360
responseAs: Int ? . self
361
361
)
@@ -374,7 +374,7 @@ class IntegrationTests: XCTestCase {
374
374
responseAs: Int ? . self
375
375
)
376
376
let byURL = functions. httpsCallable (
377
- url : emulatorURL ( " missingResultTest " ) ,
377
+ emulatorURL ( " missingResultTest " ) ,
378
378
requestAs: Int ? . self,
379
379
responseAs: Int ? . self
380
380
)
@@ -406,7 +406,7 @@ class IntegrationTests: XCTestCase {
406
406
responseAs: Int ? . self
407
407
)
408
408
let byURL = functions. httpsCallable (
409
- url : emulatorURL ( " missingResultTest " ) ,
409
+ emulatorURL ( " missingResultTest " ) ,
410
410
requestAs: Int ? . self,
411
411
responseAs: Int ? . self
412
412
)
@@ -430,7 +430,7 @@ class IntegrationTests: XCTestCase {
430
430
responseAs: Int . self
431
431
)
432
432
let byURL = functions. httpsCallable (
433
- url : emulatorURL ( " unhandledErrorTest " ) ,
433
+ emulatorURL ( " unhandledErrorTest " ) ,
434
434
requestAs: [ Int ] . self,
435
435
responseAs: Int . self
436
436
)
@@ -486,7 +486,7 @@ class IntegrationTests: XCTestCase {
486
486
responseAs: Int . self
487
487
)
488
488
let byURL = functions. httpsCallable (
489
- url : emulatorURL ( " unknownErrorTest " ) ,
489
+ emulatorURL ( " unknownErrorTest " ) ,
490
490
requestAs: [ Int ] . self,
491
491
responseAs: Int . self
492
492
)
@@ -517,7 +517,7 @@ class IntegrationTests: XCTestCase {
517
517
responseAs: Int . self
518
518
)
519
519
let byURL = functions. httpsCallable (
520
- url : emulatorURL ( " unknownErrorTest " ) ,
520
+ emulatorURL ( " unknownErrorTest " ) ,
521
521
requestAs: [ Int ] . self,
522
522
responseAs: Int . self
523
523
)
@@ -574,7 +574,7 @@ class IntegrationTests: XCTestCase {
574
574
responseAs: Int . self
575
575
)
576
576
let byURL = functions. httpsCallable (
577
- url : emulatorURL ( " explicitErrorTest " ) ,
577
+ emulatorURL ( " explicitErrorTest " ) ,
578
578
requestAs: [ Int ] . self,
579
579
responseAs: Int . self
580
580
)
@@ -600,7 +600,7 @@ class IntegrationTests: XCTestCase {
600
600
responseAs: Int . self
601
601
)
602
602
let byURL = functions. httpsCallable (
603
- url : emulatorURL ( " httpErrorTest " ) ,
603
+ emulatorURL ( " httpErrorTest " ) ,
604
604
requestAs: [ Int ] . self,
605
605
responseAs: Int . self
606
606
)
@@ -631,7 +631,7 @@ class IntegrationTests: XCTestCase {
631
631
responseAs: Int . self
632
632
)
633
633
let byURL = functions. httpsCallable (
634
- url : emulatorURL ( " httpErrorTest " ) ,
634
+ emulatorURL ( " httpErrorTest " ) ,
635
635
requestAs: [ Int ] . self,
636
636
responseAs: Int . self
637
637
)
@@ -654,7 +654,7 @@ class IntegrationTests: XCTestCase {
654
654
responseAs: Int . self
655
655
)
656
656
let byURL = functions. httpsCallable (
657
- url : emulatorURL ( " timeoutTest " ) ,
657
+ emulatorURL ( " timeoutTest " ) ,
658
658
requestAs: [ Int ] . self,
659
659
responseAs: Int . self
660
660
)
@@ -688,7 +688,7 @@ class IntegrationTests: XCTestCase {
688
688
)
689
689
byName. timeoutInterval = 0.05
690
690
var byURL = functions. httpsCallable (
691
- url : emulatorURL ( " timeoutTest " ) ,
691
+ emulatorURL ( " timeoutTest " ) ,
692
692
requestAs: [ Int ] . self,
693
693
responseAs: Int . self
694
694
)
@@ -719,7 +719,7 @@ class IntegrationTests: XCTestCase {
719
719
let byName = functions. httpsCallable ( " dataTest " ,
720
720
requestAs: DataTestRequest . self,
721
721
responseAs: DataTestResponse . self)
722
- let byURL = functions. httpsCallable ( url : emulatorURL ( " dataTest " ) ,
722
+ let byURL = functions. httpsCallable ( emulatorURL ( " dataTest " ) ,
723
723
requestAs: DataTestRequest . self,
724
724
responseAs: DataTestResponse . self)
725
725
for function in [ byName, byURL] {
@@ -758,7 +758,7 @@ class IntegrationTests: XCTestCase {
758
758
requestAs: DataTestRequest . self,
759
759
responseAs: DataTestResponse . self)
760
760
761
- let byURL = functions. httpsCallable ( url : emulatorURL ( " dataTest " ) ,
761
+ let byURL = functions. httpsCallable ( emulatorURL ( " dataTest " ) ,
762
762
requestAs: DataTestRequest . self,
763
763
responseAs: DataTestResponse . self)
764
764
@@ -785,7 +785,7 @@ class IntegrationTests: XCTestCase {
785
785
)
786
786
let byName : Callable < DataTestRequest , DataTestResponse > = functions. httpsCallable ( " dataTest " )
787
787
let byURL : Callable < DataTestRequest , DataTestResponse > = functions
788
- . httpsCallable ( url : emulatorURL ( " dataTest " ) )
788
+ . httpsCallable ( emulatorURL ( " dataTest " ) )
789
789
790
790
for function in [ byName, byURL] {
791
791
let expectation = expectation ( description: #function)
@@ -822,7 +822,7 @@ class IntegrationTests: XCTestCase {
822
822
let byName : Callable < DataTestRequest , DataTestResponse > = functions
823
823
. httpsCallable ( " dataTest " )
824
824
let byURL : Callable < DataTestRequest , DataTestResponse > = functions
825
- . httpsCallable ( url : emulatorURL ( " dataTest " ) )
825
+ . httpsCallable ( emulatorURL ( " dataTest " ) )
826
826
827
827
for function in [ byName, byURL] {
828
828
let response = try await function ( data)
0 commit comments