aboutsummaryrefslogtreecommitdiffhomepage
path: root/Functions/Example/Tests/FIRFunctionsTests.m
diff options
context:
space:
mode:
Diffstat (limited to 'Functions/Example/Tests/FIRFunctionsTests.m')
-rw-r--r--Functions/Example/Tests/FIRFunctionsTests.m8
1 files changed, 2 insertions, 6 deletions
diff --git a/Functions/Example/Tests/FIRFunctionsTests.m b/Functions/Example/Tests/FIRFunctionsTests.m
index 5d11601..fdce514 100644
--- a/Functions/Example/Tests/FIRFunctionsTests.m
+++ b/Functions/Example/Tests/FIRFunctionsTests.m
@@ -33,17 +33,13 @@
}
- (void)testURLWithName {
- // TODO(klimt): Add this test back when we add the constructor back.
- /*
id app = [[FUNFakeApp alloc] initWithProjectID:@"my-project"];
FIRFunctions *functions = [FIRFunctions functionsForApp:app region:@"my-region"];
NSString *url = [functions URLWithName:@"my-endpoint"];
XCTAssertEqualObjects(@"https://my-region-my-project.cloudfunctions.net/my-endpoint", url);
- */
- id app = [[FUNFakeApp alloc] initWithProjectID:@"my-project"];
- FIRFunctions *functions = [FIRFunctions functionsForApp:app];
- NSString *url = [functions URLWithName:@"my-endpoint"];
+ functions = [FIRFunctions functionsForApp:app];
+ url = [functions URLWithName:@"my-endpoint"];
XCTAssertEqualObjects(@"https://us-central1-my-project.cloudfunctions.net/my-endpoint", url);
}