Skip to content

Commit 1da9943

Browse files
committed
fix specs
1 parent 26b7bbf commit 1da9943

File tree

1 file changed

+1
-3
lines changed
  • draft-js-plugins-editor/src/Editor/__test__

1 file changed

+1
-3
lines changed

draft-js-plugins-editor/src/Editor/__test__/index.js

+1-3
Original file line numberDiff line numberDiff line change
@@ -182,7 +182,6 @@ describe('Editor', () => {
182182
setReadOnly: pluginEditor.setReadOnly,
183183
getEditorRef: pluginEditor.getEditorRef,
184184
};
185-
const editorState = pluginEditor.getEditorState();
186185
draftEditor.props.handleKeyCommand('command', editorState, expectedSecondArgument);
187186
expect(plugin.handleKeyCommand).has.been.calledOnce();
188187
expect(plugin.handleKeyCommand).has.been.calledWith('command', editorState, expectedSecondArgument);
@@ -254,7 +253,7 @@ describe('Editor', () => {
254253
};
255254

256255
const draftEditor = result.node;
257-
draftEditor.props.handleKeyCommand('command', pluginEditor.getEditorState(), expectedSecondArgument);
256+
draftEditor.props.handleKeyCommand('command', editorState, expectedSecondArgument);
258257
expect(plugins[0].handleKeyCommand).has.been.calledOnce();
259258
expect(plugins[1].handleKeyCommand).has.not.been.called();
260259

@@ -288,7 +287,6 @@ describe('Editor', () => {
288287

289288
const draftEditor = result.node;
290289
const pluginEditor = result.instance();
291-
const editorState = pluginEditor.getEditorState()
292290

293291
const pluginsObj = {
294292
getEditorState: pluginEditor.getEditorState,

0 commit comments

Comments
 (0)