1
0
mirror of https://github.com/BoostIo/Boostnote synced 2025-12-13 17:56:25 +00:00

add test for PlantUml Ditaa

This commit is contained in:
MSSandroid
2019-09-19 13:17:16 +02:00
committed by Junyoung Choi
parent 0003de8f08
commit 6b1c595f87
4 changed files with 27 additions and 0 deletions

View File

@@ -165,6 +165,20 @@ rectangle checkout {
@enduml @enduml
` `
const plantUmlDitaa = `
@startditaa
+--------+ +-------+ +-------+
| +---+ ditaa +--> | |
| Text | +-------+ |Diagram|
|Dokument| |!Magie!| | |
| {d}| | | | |
+---+----+ +-------+ +-------+
: ^
| Ein Haufen Arbeit |
+-------------------------+
@endditaa
`
export default { export default {
basic, basic,
codeblock, codeblock,
@@ -181,5 +195,6 @@ export default {
plantUmlMindMap, plantUmlMindMap,
plantUmlGantt, plantUmlGantt,
plantUmlWbs, plantUmlWbs,
plantUmlDitaa,
plantUmlUml plantUmlUml
} }

View File

@@ -93,3 +93,8 @@ test('Markdown.render() should render PlantUML Umls correctly', t => {
const rendered = md.render(markdownFixtures.plantUmlUml) const rendered = md.render(markdownFixtures.plantUmlUml)
t.snapshot(rendered) t.snapshot(rendered)
}) })
test('Markdown.render() should render PlantUML Ditaa correctly', t => {
const rendered = md.render(markdownFixtures.plantUmlDitaa)
t.snapshot(rendered)
})

View File

@@ -4,6 +4,13 @@ The actual snapshot is saved in `markdown-test.js.snap`.
Generated by [AVA](https://ava.li). Generated by [AVA](https://ava.li).
## Markdown.render() should render PlantUML Ditaa correctly
> Snapshot 1
`<img src="http://www.plantuml.com/plantuml/png/SoWkIImgISaiIKpaqjQ50cq51GLj93Q2mrMZ00NQO3cmHX3RJW4cKmDI4v9QKQ805a8nfyObCp6zA34NgCObFxiqDpMl1AIcHj4tCJqpLH5i18evG52TKbk3B8og1kmC0cvMKB1Im0NYkA2ckMRcANWabgQbvYau5YMbPfP0p4UOWmcqkHnIyrB0GG00" alt="uml diagram" />␊
`
## Markdown.render() should render PlantUML Gantt correctly ## Markdown.render() should render PlantUML Gantt correctly
> Snapshot 1 > Snapshot 1