Skip to content

Commit afa4099

Browse files
committed
SDK-777 update unit test
1 parent a844f98 commit afa4099

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

Branch-SDK-Tests/BNCCallbackMapTests.m

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,7 @@ - (void)testSingleSave {
4141
}];
4242

4343
// confirm there's one entry
44+
XCTAssert([map containsRequest:request] != NO);
4445
XCTAssert(map.callbacks.count == 1);
4546

4647
// call callback
@@ -63,12 +64,12 @@ - (void)testDeletedRequest {
6364
}];
6465

6566
// confirm there's one entry
67+
XCTAssert([map containsRequest:request] != NO);
6668
XCTAssert(map.callbacks.count == 1);
6769

68-
// wipe the data from the map
70+
// confirm a new request results in no callback
6971
request = [BNCServerRequest new];
70-
71-
// call callback
72+
XCTAssert([map containsRequest:request] == NO);
7273
[map callCompletionForRequest:request withStatusMessage:@"callback"];
7374

7475
// check if variable was updated

Branch-SDK/Branch-SDK/BranchEvent.h

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -88,7 +88,6 @@ typedef NS_ENUM(NSInteger, BranchEventAdType) {
8888
@property (nonatomic, copy) NSArray<BranchUniversalObject*>*_Nonnull contentItems;
8989
@property (nonatomic, copy) NSDictionary<NSString*, NSString*> *_Nonnull customData;
9090

91-
// test callback for branch event
9291
- (void)logEventWithCompletion:(void (^_Nullable)(NSString * _Nullable statusMessage))completion;
9392

9493
- (void) logEvent; //!< Logs the event on the Branch server.

0 commit comments

Comments
 (0)