Skip to content

Commit

Permalink
Merge pull request #146 from inokawa/issue145
Browse files Browse the repository at this point in the history
Add test
  • Loading branch information
inokawa committed Jun 10, 2023
2 parents c3f34f7 + a812648 commit d2faa85
Show file tree
Hide file tree
Showing 2 changed files with 31 additions and 0 deletions.
22 changes: 22 additions & 0 deletions src/__snapshots__/index.spec.ts.snap
Original file line number Diff line number Diff line change
Expand Up @@ -10442,6 +10442,28 @@ exports[`issues issue129 1`] = `[]`;

exports[`issues issue129 2`] = `[]`;

exports[`issues issue145 1`] = `
{
"children": [
{
"children": [
{
"children": [
{
"type": "text",
"value": "inline code",
},
],
"type": "strong",
},
],
"type": "emphasis",
},
],
"type": "root",
}
`;

exports[`options override builders 1`] = `
[
{
Expand Down
9 changes: 9 additions & 0 deletions src/index.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -265,4 +265,13 @@ describe("issues", () => {
const slateTreeWithSpace = toSlateProcessor.processSync(" ").result;
expect(slateTreeWithSpace).toMatchSnapshot();
});

it("issue145", () => {
const processor = unified().use(slateToRemark);
const ast = processor.runSync({
type: "root",
children: [{ text: "inline code", strong: true, emphasis: true }],
} as any);
expect(ast).toMatchSnapshot();
});
});

0 comments on commit d2faa85

Please sign in to comment.