|
@@ -27,7 +27,7 @@
|
27
|
27
|
-(void)testChangeRNNNavigationOptionsDynamically{
|
28
|
28
|
RNNNavigationOptions* options = [[RNNNavigationOptions alloc] initWithDict:@{@"topBarBackgroundColor" : @(0xff0000ff)}];
|
29
|
29
|
NSDictionary* dynamicOptions = @{@"topBarTextColor" : @(0xffff00ff), @"title" : @"hello"};
|
30
|
|
- [options setOptionsDynamically:dynamicOptions];
|
|
30
|
+ [options mergeWith:dynamicOptions];
|
31
|
31
|
XCTAssertTrue([options.title isEqual:@"hello"]);
|
32
|
32
|
|
33
|
33
|
}
|
|
@@ -35,6 +35,6 @@
|
35
|
35
|
-(void)testChangeRNNNavigationOptionsWithInvalidProperties{
|
36
|
36
|
RNNNavigationOptions* options = [[RNNNavigationOptions alloc] initWithDict:@{@"topBarBackgroundColor" : @(0xff0000ff)}];
|
37
|
37
|
NSDictionary* dynamicOptions = @{@"titleeeee" : @"hello"};
|
38
|
|
- XCTAssertThrows([options setOptionsDynamically:dynamicOptions]);
|
|
38
|
+ XCTAssertThrows([options mergeWith:dynamicOptions]);
|
39
|
39
|
}
|
40
|
40
|
@end
|