diff options
author | Bryan Klimt <bklimt@gmail.com> | 2018-06-21 15:25:13 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-06-21 15:25:13 -0400 |
commit | f08edbb85c5cbde74c354c478ac9433d2417d748 (patch) | |
tree | c837525029c9657ccf6edbc41e52952bab6f5f60 /Functions/Example | |
parent | b271a6e25144be8cf872d028bb82336b5da2074c (diff) |
Add a couple of new small Functions APIs. (#1434)
* Add a Functions constructor that allows setting a region.
* Add a method to set an emulator origin to use.
* Update the changelog
Diffstat (limited to 'Functions/Example')
-rw-r--r-- | Functions/Example/Tests/FIRFunctionsTests.m | 8 |
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); } |