import { shallow } from 'enzyme' ; import SlateEditor from './SlateEditor' ; describe ( 'package/slate-editor/SlateEditor.spec.js' , ( ) => { const props = { plugins : [ ] , onChange : jest . fn ( ) } ; const wrapper = shallow ( < SlateEditor { ... props } / > ) ; it ( 'renders without crashing' , ( ) => { expect ( wrapper . find ( '.editor--root' ) . length ) . toBe ( 1 ) ; } ) ; } ) ;