Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nextcloud/text.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/src/tests
diff options
context:
space:
mode:
authorJulius Härtl <jus@bitgrid.net>2019-09-04 10:59:31 +0300
committernpmbuildbot[bot] <npmbuildbot[bot]@users.noreply.github.com>2019-09-04 11:44:00 +0300
commit930909d7ad2da93644ecb4df02f4f69fc96ae81d (patch)
treeaec9e2e2444b518d756d73503fa023d61e8fb4ef /src/tests
parenta89449926a62529b5c29b1108e7e8c6c02e48bf6 (diff)
Use tightLists option
Signed-off-by: Julius Härtl <jus@bitgrid.net> Signed-off-by: npmbuildbot[bot] <npmbuildbot[bot]@users.noreply.github.com>
Diffstat (limited to 'src/tests')
-rw-r--r--src/tests/markdown.spec.js8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/tests/markdown.spec.js b/src/tests/markdown.spec.js
index 83ed81c5d..2c69aa9d3 100644
--- a/src/tests/markdown.spec.js
+++ b/src/tests/markdown.spec.js
@@ -59,12 +59,12 @@ describe('Markdown though editor', () => {
expect(markdownThroughEditor('~~Test~~')).toBe('~~Test~~')
})
test('ul', () => {
- expect(markdownThroughEditor('- foo\n- bar')).toBe('* foo\n\n* bar')
- expect(markdownThroughEditor('- foo\n\n- bar')).toBe('* foo\n\n* bar')
- expect(markdownThroughEditor('- foo\n\n\n- bar')).toBe('* foo\n\n* bar')
+ expect(markdownThroughEditor('- foo\n- bar')).toBe('* foo\n* bar')
+ expect(markdownThroughEditor('- foo\n\n- bar')).toBe('* foo\n* bar')
+ expect(markdownThroughEditor('- foo\n\n\n- bar')).toBe('* foo\n* bar')
})
test('ol', () => {
- expect(markdownThroughEditor('1. foo\n2. bar')).toBe('1. foo\n\n2. bar')
+ expect(markdownThroughEditor('1. foo\n2. bar')).toBe('1. foo\n2. bar')
})
test('paragraph', () => {
expect(markdownThroughEditor('foo\nbar\n\nfoobar\n\tfoobar')).toBe('foo bar\n\nfoobar foobar')