Skip to content

Commit

Permalink
Updated name
Browse files Browse the repository at this point in the history
  • Loading branch information
nsingh-branch committed Oct 20, 2023
1 parent 485355c commit daeac98
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions Branch-TestBed/Branch-SDK-Tests/BranchUniversalObject.Test.m
Original file line number Diff line number Diff line change
Expand Up @@ -283,16 +283,17 @@ - (void) testInitWithTitle {
XCTAssertEqual(buo.title, @"buoTitle");
}

- (void)testGetShortURLWithParams {
- (void)testGetShortURLWithLP {
BranchUniversalObject *buo = [[BranchUniversalObject new] initWithTitle:@"buoTitle"];
BranchLinkProperties *lp = [BranchLinkProperties new];
NSString *randomAlias = [[NSUUID UUID] UUIDString];
lp.alias = randomAlias;
XCTestExpectation *expectation = [self expectationWithDescription:@"Fetching URL"];

XCTestExpectation *expectation = [self expectationWithDescription:@"Fetching URL With LP"];
dispatch_async(dispatch_get_global_queue(DISPATCH_QUEUE_PRIORITY_DEFAULT, 0), ^{

NSLog(@"Got HERE");
[buo getShortUrlWithLinkProperties:lp andCallback:^(NSString * _Nullable url, NSError * _Nullable error) {
NSLog(@"Got HERE 2");
NSString *expectedURL = [NSString stringWithFormat:@"https://bnctestbed.app.link/%@", randomAlias];
XCTAssertEqualObjects(url, expectedURL, @"URL should match the expected format");
[expectation fulfill];
Expand Down

0 comments on commit daeac98

Please sign in to comment.