import React from 'react' ; import ReactDOM from 'react-dom' ; import { DataType } from '../../enums' ; import { ICellEditorProps } from '../CellEditor/CellEditor' ; import CellEditorState from './CellEditorState' ; const props = { column : { dataType : DataType . String , key : 'columnField' , title : 'Field' , } , dispatch : ( ) => { } , isSelectedRow : true , onValueChange : ( ) => { } , rowData : { column : 1 } , rowKeyField : '' , } ; it ( 'renders without crashing' , ( ) => { const element = document . createElement ( 'td' ) ; ReactDOM . render ( < CellEditorState { ... props } / > , element ) ; ReactDOM . unmountComponentAtNode ( element ) ; } ) ;