|
@@ -156,6 +156,16 @@
|
156
|
156
|
XCTAssertFalse(self.uut.navigationController.navigationBar.translucent);
|
157
|
157
|
}
|
158
|
158
|
|
|
159
|
+-(void)testTopBarTransparent {
|
|
160
|
+ NSNumber* topBarTransparentInput = @(0);
|
|
161
|
+ self.options.topBar.transparent = topBarTransparentInput;
|
|
162
|
+ __unused RNNNavigationController* nav = [[RNNNavigationController alloc] initWithRootViewController:self.uut];
|
|
163
|
+ [self.uut viewWillAppear:false];
|
|
164
|
+ XCTAssertNotNil(self.uut.navigationController.navigationBar.shadowImage);
|
|
165
|
+ XCTAssertNotNil([self.uut.navigationController.navigationBar backgroundImageForBarMetrics:UIBarMetricsDefault]);
|
|
166
|
+ XCTAssertTrue(CGRectEqualToRect(self.uut.navigationController.navigationBar.subviews.firstObject.frame, CGRectZero));
|
|
167
|
+}
|
|
168
|
+
|
159
|
169
|
-(void)testTabBadge {
|
160
|
170
|
NSString* tabBadgeInput = @"5";
|
161
|
171
|
self.options.tabBar.tabBadge = tabBadgeInput;
|