File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed
Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -158,23 +158,23 @@ describe('DateTimePicker', () => {
158158
159159 const { container } = render ( < DateTimePicker className = { className } /> ) ;
160160
161- const wrapper = container . firstChild ;
161+ const wrapper = container . firstElementChild ;
162162
163163 expect ( wrapper ) . toHaveClass ( className ) ;
164164 } ) ;
165165
166166 it ( 'applies "--open" className to its wrapper when given isCalendarOpen flag' , ( ) => {
167167 const { container } = render ( < DateTimePicker isCalendarOpen /> ) ;
168168
169- const wrapper = container . firstChild ;
169+ const wrapper = container . firstElementChild ;
170170
171171 expect ( wrapper ) . toHaveClass ( 'react-datetime-picker--open' ) ;
172172 } ) ;
173173
174174 it ( 'applies "--open" className to its wrapper when given isClockOpen flag' , ( ) => {
175175 const { container } = render ( < DateTimePicker isClockOpen /> ) ;
176176
177- const wrapper = container . firstChild ;
177+ const wrapper = container . firstElementChild ;
178178
179179 expect ( wrapper ) . toHaveClass ( 'react-datetime-picker--open' ) ;
180180 } ) ;
You can’t perform that action at this time.
0 commit comments