1
0
mirror of https://github.com/BoostIo/Boostnote synced 2025-12-13 01:36:22 +00:00

added smart quotes unit test for lib/markdown

This commit is contained in:
Yu-Hung Ou
2018-03-18 15:36:57 +11:00
parent 03d11b7b58
commit 1dd7644e12
4 changed files with 32 additions and 8 deletions

View File

@@ -25,3 +25,12 @@ test('Markdown.render() should renders checkboxes', t => {
const rendered = md.render(markdownFixtures.checkboxes)
t.snapshot(rendered)
})
test('Markdown.render() should text with quotes correctly', t => {
const renderedSmartQuotes = md.render(markdownFixtures.smartQuotes)
t.snapshot(renderedSmartQuotes)
const newmd = new Markdown({ typographer: false })
const renderedNonSmartQuotes = newmd.render(markdownFixtures.smartQuotes)
t.snapshot(renderedNonSmartQuotes)
})