Skip to content

Commit 8f9a6c4

Browse files
committed
test: adjust markdown test to current behavior
Right now we add an empty line after each image so it lives in its own paragraph. This is not needed at the end of the file and we should preserve the number of newlines instead (#3428). But for now it should not block merging the block images pr #3282. Signed-off-by: Max <[email protected]>
1 parent f4b660d commit 8f9a6c4

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/tests/markdown.spec.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -120,8 +120,9 @@ describe('Markdown though editor', () => {
120120
expect(markdownThroughEditor('[bar\\\\]: /uri\n\n[bar\\\\]')).toBe('[bar\\\\](/uri)')
121121
})
122122
test('images', () => {
123-
expect(markdownThroughEditor('![test](foo)')).toBe('![test](foo)')
124123
expect(markdownThroughEditor('text ![test](foo) moretext')).toBe('text ![test](foo) moretext')
124+
// regression introduced in #3282. To be fixed in #3428.
125+
expect(markdownThroughEditor('![test](foo)')).toBe('![test](foo)\n\n')
125126
})
126127
test('special characters', () => {
127128
expect(markdownThroughEditor('"\';&.-#><')).toBe('"\';&.-#><')

0 commit comments

Comments
 (0)