Skip to content

Commit

Permalink
Removed test
Browse files Browse the repository at this point in the history
  • Loading branch information
nsingh-branch committed Oct 20, 2023
1 parent f252123 commit 88ee464
Showing 1 changed file with 0 additions and 22 deletions.
22 changes: 0 additions & 22 deletions Branch-TestBed/Branch-SDK-Tests/BranchClassTests.m
Original file line number Diff line number Diff line change
Expand Up @@ -219,28 +219,6 @@ - (void)testGetShortURL {
}];
}

- (void)testGetShortURLWithParams {
XCTestExpectation *expectation = [self expectationWithDescription:@"Fetching URL"];
dispatch_async(dispatch_get_global_queue(DISPATCH_QUEUE_PRIORITY_DEFAULT, 0), ^{
NSDictionary *params = @{@"key": @"value"};
NSArray *tags = @[@"tag1", @"tag2"];
NSString *randomAlias = [[NSUUID UUID] UUIDString];
[self.branch getShortUrlWithParams:params andTags:tags andAlias:randomAlias andMatchDuration:10 andChannel:@"channel1" andFeature:@"feature1" andStage:@"stage1" andCampaign:@"campaign1" andCallback:^(NSString * _Nullable url, NSError * _Nullable error) {

NSString *expectedURL = [NSString stringWithFormat:@"https://bnctestbed.app.link/%@", randomAlias];
XCTAssertEqualObjects(url, expectedURL, @"URL should match the expected format");

[expectation fulfill];
}];
});

[self waitForExpectationsWithTimeout:5 handler:^(NSError *error) {
if (error) {
NSLog(@"Timeout Error: %@", error);
}
}];
}

- (void)testGetLongURLWithParamsAndChannelAndTagsAndFeatureAndStageAndAlias {
NSDictionary *params = @{@"key": @"value"};
NSString *channel = @"channel1";
Expand Down

0 comments on commit 88ee464

Please sign in to comment.