File tree Expand file tree Collapse file tree 2 files changed +7
-3
lines changed Expand file tree Collapse file tree 2 files changed +7
-3
lines changed Original file line number Diff line number Diff line change 11import React from 'react' ; // eslint-disable-line no-unused-vars
2- import { mount } from 'enzyme' ;
2+ import { mount , shallow } from 'enzyme' ;
33import Datetime from '../DateTime' ; // eslint-disable-line no-unused-vars
44
55const simulateClickOnElement = ( element ) => {
@@ -16,6 +16,10 @@ module.exports = {
1616 return mount ( < Datetime { ...props } /> ) ;
1717 } ,
1818
19+ createDatetimeShallow : ( props ) => {
20+ return shallow ( < Datetime { ...props } /> ) ;
21+ } ,
22+
1923 /*
2024 * Click Simulations
2125 */
Original file line number Diff line number Diff line change @@ -374,8 +374,8 @@ describe('Datetime', () => {
374374 expect ( utils . isTimeView ( component ) ) . toBeTruthy ( ) ;
375375 } ) ;
376376
377- xit ( 'className -> type string' , ( ) => {
378- const component = utils . createDatetime ( { className : 'custom-class' } ) ;
377+ it ( 'className -> type string' , ( ) => {
378+ const component = utils . createDatetimeShallow ( { className : 'custom-class' } ) ;
379379 expect ( component . find ( '.custom-class' ) . length ) . toEqual ( 1 ) ;
380380 } ) ;
381381
You can’t perform that action at this time.
0 commit comments