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

Commit 6d446ce

Browse files
committed
Dont test markdown in code blocks
1 parent 4cf0b3b commit 6d446ce

File tree

1 file changed

+14
-0
lines changed

1 file changed

+14
-0
lines changed

src/__test__/plugin.test.js

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -331,6 +331,20 @@ describe("draft-js-markdown-plugin", () => {
331331
character = " ";
332332
subject = () =>
333333
plugin.handleBeforeInput(character, store.getEditorState(), store);
334+
currentRawContentState = {
335+
entityMap: {},
336+
blocks: [
337+
{
338+
key: "item1",
339+
text: "",
340+
type: "unstyled",
341+
depth: 0,
342+
inlineStyleRanges: [],
343+
entityRanges: [],
344+
data: {},
345+
},
346+
],
347+
};
334348
});
335349
[
336350
"handleBlockType",

0 commit comments

Comments
 (0)