Skip to content

Commit edeb6bb

Browse files
committed
Fixed erroneous test for blockquotes and preserveNewlines.
The problem with the test was that it expected four newlines to be present when only three lines were given. When preserveNewlines is true, three lines should be three lines, even though the result will be that the text following the block quote will be obsorbed into the blockquote.
1 parent 861ca63 commit edeb6bb

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

test/draft-to-markdown.spec.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -94,7 +94,7 @@ describe('draftToMarkdown', function () {
9494
expect(markdown).toEqual('> one\n> \n> blockquote\n\nHello :)');
9595

9696
markdown = draftToMarkdown(rawObject, {preserveNewlines: true});
97-
expect(markdown).toEqual('> one\n> \n> blockquote\n\nHello :)');
97+
expect(markdown).toEqual('> one\n> \n> blockquote\nHello :)');
9898
});
9999
});
100100

0 commit comments

Comments
 (0)