Skip to content

Commit 59c4ffb

Browse files
committed
Update tests
1 parent eb3a738 commit 59c4ffb

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

FirebaseRemoteConfig/Tests/Unit/RCNRemoteConfigTest.m

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1419,11 +1419,12 @@ - (void)testSetFetchTimeoutConfigSetting {
14191419
}
14201420
}
14211421

1422-
- (void)testFetchRequestWithUserProperties {
1422+
- (void)testFetchRequestWithUserPropertiesOnly {
14231423
NSDictionary *userProperties = @{@"user_key" : @"user_value"};
14241424
NSString *req = [_settings nextRequestWithUserProperties:userProperties];
14251425

14261426
XCTAssertTrue([req containsString:@"analytics_user_properties:{\"user_key\":\"user_value\"}"]);
1427+
XCTAssertFalse([req containsString:@"first_open_time"]);
14271428
}
14281429

14291430
- (void)testFetchRequestWithFirstOpenTimeAndUserProperties {
@@ -1435,10 +1436,10 @@ - (void)testFetchRequestWithFirstOpenTimeAndUserProperties {
14351436
}
14361437

14371438
- (void)testFetchRequestFirstOpenTimeOnly {
1438-
NSDictionary *userProperties = @{@"_fot" : @1650312375543};
1439+
NSDictionary *userProperties = @{@"_fot" : @1650315600000};
14391440
NSString *req = [_settings nextRequestWithUserProperties:userProperties];
14401441

1441-
XCTAssertTrue([req containsString:@"first_open_time:'2022-04-18T20:06:15Z'"]);
1442+
XCTAssertTrue([req containsString:@"first_open_time:'2022-04-18T21:00:00Z'"]);
14421443
XCTAssertFalse([req containsString:@"analytics_user_properties"]);
14431444
}
14441445

0 commit comments

Comments
 (0)