Skip to content

Commit

Permalink
Fix onBlur unit test
Browse files Browse the repository at this point in the history
  • Loading branch information
johngodley committed Oct 17, 2018
1 parent de3d1fc commit 2a65971
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion packages/editor/src/components/block-list/test/block-html.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
* External dependencies
*/
import { shallow } from 'enzyme';
import { noop } from 'lodash';

/**
* WordPress dependencies
Expand Down Expand Up @@ -79,7 +80,7 @@ describe( 'BlockHTML', () => {
content: 'test-block',
isValid: true,
} );
const wrapper = shallow( <BlockHTML block={ block } onChange={ onChange } /> );
const wrapper = shallow( <BlockHTML block={ block } onChange={ onChange } onToggleMode={ noop } /> );

wrapper.instance().onChange( { target: { value: '<p>update' } } );
wrapper.instance().onBlur();
Expand Down

0 comments on commit 2a65971

Please sign in to comment.