Skip to content

Commit e19ec74

Browse files
committed
Fix tests
1 parent a86564e commit e19ec74

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

src/__test__/plugin-test.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -86,6 +86,7 @@ describe('draft-js-markdown-shortcuts-plugin', () => {
8686
() => {
8787
beforeEach(() => {
8888
plugin = createMarkdownShortcutsPlugin(...args);
89+
plugin.initialize(store);
8990
});
9091

9192
it('is loaded', () => {

src/index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -112,7 +112,7 @@ const createMarkdownShortcutsPlugin = (config = { insertEmptyBlockOnReturnWithMo
112112
component: CheckableListItem,
113113
props: {
114114
onChangeChecked: () =>
115-
store.setEditorState(CheckableListItemUtils.toggleChecked(getEditorState(), block)),
115+
store.setEditorState(CheckableListItemUtils.toggleChecked(store.getEditorState(), block)),
116116
checked: !!block.getData().get('checked'),
117117
},
118118
};

0 commit comments

Comments
 (0)