Skip to content

Commit

Permalink
Updated classes
Browse files Browse the repository at this point in the history
  • Loading branch information
nsingh-branch committed Sep 27, 2023
1 parent 84f6ce1 commit 5279fc2
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 @@ -29,11 +29,6 @@ - (void)tearDown {
[super tearDown];
}

- (void)testResetUserSession {
[self.branch resetUserSession];
//XCTAssertEqual([BNCPreferenceHelper sharedInstance]., BNCInitStatusUninitialized, @"Initialization status should be BNCInitStatusUninitialized");
}

- (void)testIsUserIdentified {
[self.branch setIdentity: @"userId"];
XCTAssertTrue([self.branch isUserIdentified], @"User should be identified");
Expand Down Expand Up @@ -66,32 +61,15 @@ - (void)testSetRequestMetadataKeyAndValue {
}

- (void)testSetTrackingDisabled {
// Initial state
XCTAssertFalse([BNCPreferenceHelper sharedInstance].trackingDisabled);

// Set tracking to disabled
[Branch setTrackingDisabled:YES];
XCTAssertTrue([BNCPreferenceHelper sharedInstance].trackingDisabled);

// Revert tracking to enabled
[Branch setTrackingDisabled:NO];
XCTAssertFalse([BNCPreferenceHelper sharedInstance].trackingDisabled);
}

//- (void)testSetReferrerGbraidValidityWindow {
// // Initial state, should be nil or non-existing
// XCTAssertNil([BNCPreferenceHelper sharedInstance].referringURLQueryParameters[BRANCH_REQUEST_KEY_REFERRER_GBRAID][BRANCH_URL_QUERY_PARAMETERS_VALIDITY_WINDOW_KEY]);
//
// // Set validity window
// NSTimeInterval validityWindow = 1592000.0;
// [Branch setReferrerGbraidValidityWindow:validityWindow];
// [NSThread sleepForTimeInterval:1.0];
// NSLog(@"After setting 2: %@", [BNCPreferenceHelper sharedInstance].referringURLQueryParameters);
//
// // Check if it's set correctly
// XCTAssertEqual([BNCPreferenceHelper sharedInstance].referrerGBRAIDValidityWindow, validityWindow);
//}

- (void)testCheckPasteboardOnInstall {
[self.branch checkPasteboardOnInstall];
BOOL checkOnInstall = [BNCPasteboard sharedInstance].checkOnInstall;
Expand Down

0 comments on commit 5279fc2

Please sign in to comment.