@@ -182,7 +182,6 @@ describe('Editor', () => {
182
182
setReadOnly : pluginEditor . setReadOnly ,
183
183
getEditorRef : pluginEditor . getEditorRef ,
184
184
} ;
185
- const editorState = pluginEditor . getEditorState ( ) ;
186
185
draftEditor . props . handleKeyCommand ( 'command' , editorState , expectedSecondArgument ) ;
187
186
expect ( plugin . handleKeyCommand ) . has . been . calledOnce ( ) ;
188
187
expect ( plugin . handleKeyCommand ) . has . been . calledWith ( 'command' , editorState , expectedSecondArgument ) ;
@@ -254,7 +253,7 @@ describe('Editor', () => {
254
253
} ;
255
254
256
255
const draftEditor = result . node ;
257
- draftEditor . props . handleKeyCommand ( 'command' , pluginEditor . getEditorState ( ) , expectedSecondArgument ) ;
256
+ draftEditor . props . handleKeyCommand ( 'command' , editorState , expectedSecondArgument ) ;
258
257
expect ( plugins [ 0 ] . handleKeyCommand ) . has . been . calledOnce ( ) ;
259
258
expect ( plugins [ 1 ] . handleKeyCommand ) . has . not . been . called ( ) ;
260
259
@@ -288,7 +287,6 @@ describe('Editor', () => {
288
287
289
288
const draftEditor = result . node ;
290
289
const pluginEditor = result . instance ( ) ;
291
- const editorState = pluginEditor . getEditorState ( )
292
290
293
291
const pluginsObj = {
294
292
getEditorState : pluginEditor . getEditorState ,
0 commit comments