diff options
Diffstat (limited to 'src/tests')
-rw-r--r-- | src/tests/markdown.spec.js | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/tests/markdown.spec.js b/src/tests/markdown.spec.js index cf011929b..83ed81c5d 100644 --- a/src/tests/markdown.spec.js +++ b/src/tests/markdown.spec.js @@ -78,6 +78,11 @@ describe('Markdown though editor', () => { test('special characters', () => { expect(markdownThroughEditor('"\';&.-#><')).toBe('"\';&.-#><') }) + test('checkboxes', () => { + expect(markdownThroughEditor('- [ ] [asd](sdf)')).toBe('* [ ] [asd](sdf)') + expect(markdownThroughEditor('- [x] [asd](sdf)')).toBe('* [x] [asd](sdf)') + expect(markdownThroughEditor('- [ [asd](sdf)')).toBe('* \\[ [asd](sdf)') + }) }) describe('Markdown serializer from html', () => { |