Skip to content

Commit

Permalink
fix specs
Browse files Browse the repository at this point in the history
  • Loading branch information
juliankrispel committed Jun 11, 2018
1 parent 26b7bbf commit 1da9943
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions draft-js-plugins-editor/src/Editor/__test__/index.js
Expand Up @@ -182,7 +182,6 @@ describe('Editor', () => {
setReadOnly: pluginEditor.setReadOnly,
getEditorRef: pluginEditor.getEditorRef,
};
const editorState = pluginEditor.getEditorState();
draftEditor.props.handleKeyCommand('command', editorState, expectedSecondArgument);
expect(plugin.handleKeyCommand).has.been.calledOnce();
expect(plugin.handleKeyCommand).has.been.calledWith('command', editorState, expectedSecondArgument);
Expand Down Expand Up @@ -254,7 +253,7 @@ describe('Editor', () => {
};

const draftEditor = result.node;
draftEditor.props.handleKeyCommand('command', pluginEditor.getEditorState(), expectedSecondArgument);
draftEditor.props.handleKeyCommand('command', editorState, expectedSecondArgument);
expect(plugins[0].handleKeyCommand).has.been.calledOnce();
expect(plugins[1].handleKeyCommand).has.not.been.called();

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

const draftEditor = result.node;
const pluginEditor = result.instance();
const editorState = pluginEditor.getEditorState()

const pluginsObj = {
getEditorState: pluginEditor.getEditorState,
Expand Down

0 comments on commit 1da9943

Please sign in to comment.