@@ -60,7 +60,14 @@ - (void)testRegionWithEmulator {
60
60
[_functionsCustomDomain useEmulatorWithHost: @" localhost" port: 5005 ];
61
61
NSLog (@" %@ " , _functionsCustomDomain.emulatorOrigin );
62
62
NSString *url = [_functionsCustomDomain URLWithName: @" my-endpoint" ];
63
- XCTAssertEqualObjects (@" localhost:5005/my-project/my-region/my-endpoint" , url);
63
+ XCTAssertEqualObjects (@" http://localhost:5005/my-project/my-region/my-endpoint" , url);
64
+ }
65
+
66
+ - (void )testRegionWithEmulatorWithScheme {
67
+ [_functionsCustomDomain useEmulatorWithHost: @" http://localhost" port: 5005 ];
68
+ NSLog (@" %@ " , _functionsCustomDomain.emulatorOrigin );
69
+ NSString *url = [_functionsCustomDomain URLWithName: @" my-endpoint" ];
70
+ XCTAssertEqualObjects (@" http://localhost:5005/my-project/my-region/my-endpoint" , url);
64
71
}
65
72
66
73
- (void )testCustomDomain {
@@ -71,12 +78,12 @@ - (void)testCustomDomain {
71
78
- (void )testCustomDomainWithEmulator {
72
79
[_functionsCustomDomain useEmulatorWithHost: @" localhost" port: 5005 ];
73
80
NSString *url = [_functionsCustomDomain URLWithName: @" my-endpoint" ];
74
- XCTAssertEqualObjects (@" localhost:5005/my-project/my-region/my-endpoint" , url);
81
+ XCTAssertEqualObjects (@" http:// localhost:5005/my-project/my-region/my-endpoint" , url);
75
82
}
76
83
77
84
- (void )testSetEmulatorSettings {
78
85
[_functions useEmulatorWithHost: @" localhost" port: 1000 ];
79
- XCTAssertEqualObjects (@" localhost:1000" , _functions.emulatorOrigin );
86
+ XCTAssertEqualObjects (@" http:// localhost:1000" , _functions.emulatorOrigin );
80
87
}
81
88
82
89
@end
0 commit comments