@@ -65,7 +65,7 @@ describe('Nav', () => {
65
65
66
66
it ( 'Should add navbar-right class' , ( ) => {
67
67
let instance = ReactTestUtils . renderIntoDocument (
68
- < Nav bsStyle = "tabs" right activeKey = { 1 } >
68
+ < Nav bsStyle = "tabs" navbar right activeKey = { 1 } >
69
69
< NavItem key = { 1 } > Tab 1 content</ NavItem >
70
70
< NavItem key = { 2 } > Tab 2 content</ NavItem >
71
71
</ Nav >
@@ -118,68 +118,6 @@ describe('Nav', () => {
118
118
assert . ok ( items [ 0 ] . props . navItem ) ;
119
119
} ) ;
120
120
121
- it ( 'Should apply className only to the wrapper nav element' , ( ) => {
122
- const instance = ReactTestUtils . renderIntoDocument (
123
- < Nav bsStyle = "tabs" activeKey = { 1 } className = "nav-specific" >
124
- < NavItem key = { 1 } > Tab 1 content</ NavItem >
125
- < NavItem key = { 2 } > Tab 2 content</ NavItem >
126
- </ Nav >
127
- ) ;
128
-
129
- let ulNode = ReactTestUtils . findRenderedDOMComponentWithTag ( instance , 'ul' ) ;
130
- assert . notInclude ( ulNode . className , 'nav-specific' ) ;
131
-
132
- let navNode = ReactTestUtils . findRenderedDOMComponentWithTag ( instance , 'nav' ) ;
133
- assert . include ( navNode . className , 'nav-specific' ) ;
134
- } ) ;
135
-
136
- it ( 'Should apply ulClassName to the inner ul element' , ( ) => {
137
- const instance = ReactTestUtils . renderIntoDocument (
138
- < Nav bsStyle = "tabs" activeKey = { 1 } className = "nav-specific" ulClassName = "ul-specific" >
139
- < NavItem key = { 1 } > Tab 1 content</ NavItem >
140
- < NavItem key = { 2 } > Tab 2 content</ NavItem >
141
- </ Nav >
142
- ) ;
143
-
144
- let ulNode = ReactTestUtils . findRenderedDOMComponentWithTag ( instance , 'ul' ) ;
145
- assert . include ( ulNode . className , 'ul-specific' ) ;
146
- assert . notInclude ( ulNode . className , 'nav-specific' ) ;
147
-
148
- let navNode = ReactTestUtils . findRenderedDOMComponentWithTag ( instance , 'nav' ) ;
149
- assert . notInclude ( navNode . className , 'ul-specific' ) ;
150
- assert . include ( navNode . className , 'nav-specific' ) ;
151
- } ) ;
152
-
153
- it ( 'Should apply id to the wrapper nav element' , ( ) => {
154
- const instance = ReactTestUtils . renderIntoDocument (
155
- < Nav bsStyle = "tabs" activeKey = { 1 } id = "nav-id" >
156
- < NavItem key = { 1 } > Tab 1 content</ NavItem >
157
- < NavItem key = { 2 } > Tab 2 content</ NavItem >
158
- </ Nav >
159
- ) ;
160
-
161
- let navNode = ReactTestUtils . findRenderedDOMComponentWithTag ( instance , 'nav' ) ;
162
- assert . equal ( navNode . id , 'nav-id' ) ;
163
-
164
- let ulNode = ReactTestUtils . findRenderedDOMComponentWithTag ( instance , 'ul' ) ;
165
- assert . notEqual ( ulNode . id , 'nav-id' ) ;
166
- } ) ;
167
-
168
- it ( 'Should apply ulId to the inner ul element' , ( ) => {
169
- const instance = ReactTestUtils . renderIntoDocument (
170
- < Nav bsStyle = "tabs" activeKey = { 1 } id = "nav-id" ulId = "ul-id" >
171
- < NavItem key = { 1 } > Tab 1 content</ NavItem >
172
- < NavItem key = { 2 } > Tab 2 content</ NavItem >
173
- </ Nav >
174
- ) ;
175
-
176
- let ulNode = ReactTestUtils . findRenderedDOMComponentWithTag ( instance , 'ul' ) ;
177
- assert . equal ( ulNode . id , 'ul-id' ) ;
178
-
179
- let navNode = ReactTestUtils . findRenderedDOMComponentWithTag ( instance , 'nav' ) ;
180
- assert . equal ( navNode . id , 'nav-id' ) ;
181
- } ) ;
182
-
183
121
it ( 'Should warn when attempting to use a justified navbar nav' , ( ) => {
184
122
ReactTestUtils . renderIntoDocument (
185
123
< Nav navbar justified />
0 commit comments