Skip to content
This repository was archived by the owner on Oct 11, 2022. It is now read-only.

Commit e023456

Browse files
committed
Fix broken tests
1 parent 12c8dc9 commit e023456

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/__test__/plugin-test.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -99,7 +99,7 @@ describe('draft-js-markdown-shortcuts-plugin', () => {
9999
});
100100
describe('handleReturn', () => {
101101
beforeEach(() => {
102-
subject = () => plugin.handleReturn(event, store);
102+
subject = () => plugin.handleReturn(event, store.getEditorState(), store);
103103
});
104104
it('does not handle', () => {
105105
currentRawContentState = {
@@ -298,7 +298,7 @@ describe('draft-js-markdown-shortcuts-plugin', () => {
298298
let character;
299299
beforeEach(() => {
300300
character = ' ';
301-
subject = () => plugin.handleBeforeInput(character, store);
301+
subject = () => plugin.handleBeforeInput(character, store.getEditorState(), store);
302302
});
303303
[
304304
'handleBlockType',
@@ -337,7 +337,7 @@ describe('draft-js-markdown-shortcuts-plugin', () => {
337337
pastedText = `_hello world_
338338
Hello`;
339339
html = undefined;
340-
subject = () => plugin.handlePastedText(pastedText, html, store);
340+
subject = () => plugin.handlePastedText(pastedText, html, store.getEditorState(), store);
341341
});
342342
[
343343
'replaceText',

0 commit comments

Comments
 (0)