diff options
Diffstat (limited to 'spec/frontend/content_editor/services/markdown_serializer_spec.js')
-rw-r--r-- | spec/frontend/content_editor/services/markdown_serializer_spec.js | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/spec/frontend/content_editor/services/markdown_serializer_spec.js b/spec/frontend/content_editor/services/markdown_serializer_spec.js index 56394c85e8b..32193d97fd8 100644 --- a/spec/frontend/content_editor/services/markdown_serializer_spec.js +++ b/spec/frontend/content_editor/services/markdown_serializer_spec.js @@ -1204,6 +1204,24 @@ Oranges are orange [^1] ); }); + it('correctly adds a space between a preceding block element and a markdown table', () => { + expect( + serialize( + bulletList(listItem(paragraph('List item 1')), listItem(paragraph('List item 2'))), + table(tableRow(tableHeader(paragraph('header'))), tableRow(tableCell(paragraph('cell')))), + ).trim(), + ).toBe( + ` +* List item 1 +* List item 2 + +| header | +|--------| +| cell | + `.trim(), + ); + }); + it('correctly serializes reference definition', () => { expect( serialize( |