@@ -111,61 +111,6 @@ describe('Label', () => {
111111 expect ( wrapper . hasClass ( 'sr-only' ) ) . toBe ( true ) ;
112112 } ) ;
113113
114- it ( 'should render with "form-check-label" class when check prop is truthy and inline is not' , ( ) => {
115- const wrapper = shallow ( < Label check > Yo!</ Label > ) ;
116-
117- expect ( wrapper . hasClass ( 'form-check-label' ) ) . toBe ( true ) ;
118- } ) ;
119-
120- it ( 'should not render with "form-check-inline" class when check prop is truthy and inline is not' , ( ) => {
121- const wrapper = shallow ( < Label check > Yo!</ Label > ) ;
122-
123- expect ( wrapper . hasClass ( 'form-check-inline' ) ) . toBe ( false ) ;
124- } ) ;
125-
126- it ( 'should not render with "disabled" class when check and disabled props are truthy and inline is not' , ( ) => {
127- const wrapper = shallow ( < Label check disabled > Yo!</ Label > ) ;
128-
129- expect ( wrapper . hasClass ( 'disabled' ) ) . toBe ( false ) ;
130- } ) ;
131-
132- it ( 'should render with "form-check-inline" class when check and inline props are truthy' , ( ) => {
133- const wrapper = shallow ( < Label check inline > Yo!</ Label > ) ;
134-
135- expect ( wrapper . hasClass ( 'form-check-inline' ) ) . toBe ( true ) ;
136- } ) ;
137-
138- it ( 'should not render with "form-check-inline" class when check and inline props are truthy' , ( ) => {
139- const wrapper = shallow ( < Label check inline > Yo!</ Label > ) ;
140-
141- expect ( wrapper . hasClass ( 'form-check-label' ) ) . toBe ( false ) ;
142- } ) ;
143-
144- it ( 'should not render with "disabled" class when check, inline, and disabled props are truthy' , ( ) => {
145- const wrapper = shallow ( < Label check inline disabled > Yo!</ Label > ) ;
146-
147- expect ( wrapper . hasClass ( 'disabled' ) ) . toBe ( true ) ;
148- } ) ;
149-
150- it ( 'should not render with "form-check-inline" class when inline prop is truthy and check is not' , ( ) => {
151- const wrapper = shallow ( < Label inline > Yo!</ Label > ) ;
152-
153- expect ( wrapper . hasClass ( 'form-check-inline' ) ) . toBe ( false ) ;
154- } ) ;
155-
156- it ( 'should not render with "disabled" class when inline and disabled props are truthy and check is not' , ( ) => {
157- const wrapper = shallow ( < Label inline disabled > Yo!</ Label > ) ;
158-
159- expect ( wrapper . hasClass ( 'disabled' ) ) . toBe ( false ) ;
160- } ) ;
161-
162- it ( 'should not render with "form-check-inline" nor "form-check-label" by default' , ( ) => {
163- const wrapper = shallow ( < Label > Yo!</ Label > ) ;
164-
165- expect ( wrapper . hasClass ( 'form-check-inline' ) ) . toBe ( false ) ;
166- expect ( wrapper . hasClass ( 'form-check-label' ) ) . toBe ( false ) ;
167- } ) ;
168-
169114 it ( 'should render with "col-form-label-${size}" class when size is provided' , ( ) => {
170115 const wrapper = shallow ( < Label size = "lg" > Yo!</ Label > ) ;
171116
0 commit comments