We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ef68192 commit db0a188Copy full SHA for db0a188
draft-js-plugins-editor/src/Editor/__test__/index.js
@@ -66,6 +66,7 @@ describe('Editor', () => {
66
onDragEnter: sinon.spy(),
67
onEscape: sinon.spy(),
68
onTab: sinon.spy(),
69
+ onChange: sinon.spy(),
70
},
71
];
72
const result = shallow(
@@ -84,8 +85,8 @@ describe('Editor', () => {
84
85
expect(plugins[0].onEscape).has.been.calledOnce();
86
result.node.props.onTab();
87
expect(plugins[0].onTab).has.been.calledOnce();
- // result.node.props.onChange(editorState);
88
- // expect(onChange).has.been.calledOnce();
+ result.node.props.onChange(editorState);
89
+ expect(plugins[0].onChange).has.been.calledOnce();
90
});
91
92
it('calls the handle-hooks of the plugin', () => {
0 commit comments