import { shallow } from 'enzyme' ; import React from 'react' ; import { TransformListRow } from '../../../../common' ; import { StartActionName , StartActionNameProps } from './start_action_name' ; import transformListRow from '../../../../common/__mocks__/transform_list_row.json' ; jest . mock ( '../../../../../shared_imports' ) ; jest . mock ( '../../../../../app/app_dependencies' ) ; describe ( 'Transform: Transform List Actions <StartAction />' , ( ) => { test ( 'Minimal initialization' , ( ) => { const item = transformListRow ; const props = { forceDisable : false , items : [ item ] , transformNodes : 1 , } ; const wrapper = shallow ( < StartActionName { ... props } / > ) ; expect ( wrapper ) . toMatchSnapshot ( ) ; } ) ; } ) ;