Skip to content

Commit 3f4dd49

Browse files
MSSandroidRokt33r
authored andcommitted
added missing newline at end of document
1 parent be06b3f commit 3f4dd49

File tree

4 files changed

+109
-1
lines changed

4 files changed

+109
-1
lines changed

tests/fixtures/markdowns.js

Lines changed: 61 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -109,6 +109,62 @@ const footnote = `
109109
hello-world: https://github.com/BoostIO/Boostnote/
110110
`
111111

112+
const plantUmlMindMap = `
113+
@startmindmap
114+
* Debian
115+
** Ubuntu
116+
*** Linux Mint
117+
*** Kubuntu
118+
*** Lubuntu
119+
*** KDE Neon
120+
** LMDE
121+
** SolydXK
122+
** SteamOS
123+
** Raspbian with a very long name
124+
*** <s>Raspmbc</s> => OSMC
125+
*** <s>Raspyfi</s> => Volumio
126+
@endmindmap
127+
`
128+
129+
const plantUmlGantt = `
130+
@startgantt
131+
[Prototype design] lasts 15 days
132+
[Test prototype] lasts 10 days
133+
[Test prototype] starts at [Prototype design]'s end
134+
@endgantt
135+
`
136+
137+
const plantUmlWbs = `
138+
@startwbs
139+
* Business Process Modelling WBS
140+
** Launch the project
141+
*** Complete Stakeholder Research
142+
*** Initial Implementation Plan
143+
** Design phase
144+
*** Model of AsIs Processes Completed
145+
**** Model of AsIs Processes Completed1
146+
**** Model of AsIs Processes Completed2
147+
*** Measure AsIs performance metrics
148+
*** Identify Quick Wins
149+
** Complete innovate phase
150+
@endwbs
151+
`
152+
153+
const plantUmlUml = `
154+
@startuml
155+
left to right direction
156+
skinparam packageStyle rectangle
157+
actor customer
158+
actor clerk
159+
rectangle checkout {
160+
customer -- (checkout)
161+
(checkout) .> (payment) : include
162+
(help) .> (checkout) : extends
163+
(checkout) -- clerk
164+
}
165+
@enduml
166+
`
167+
112168
export default {
113169
basic,
114170
codeblock,
@@ -121,5 +177,9 @@ export default {
121177
supTexts,
122178
deflists,
123179
shortcuts,
124-
footnote
180+
footnote,
181+
plantUmlMindMap,
182+
plantUmlGantt,
183+
plantUmlWbs,
184+
plantUmlUml
125185
}

tests/lib/markdown-test.js

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -73,3 +73,23 @@ test('Markdown.render() should render footnote correctly', t => {
7373
const rendered = md.render(markdownFixtures.footnote)
7474
t.snapshot(rendered)
7575
})
76+
77+
test('Markdown.render() should render PlantUML MindMaps correctly', t => {
78+
const rendered = md.render(markdownFixtures.plantUmlMindMap)
79+
t.snapshot(rendered)
80+
})
81+
82+
test('Markdown.render() should render PlantUML Gantt correctly', t => {
83+
const rendered = md.render(markdownFixtures.plantUmlGantt)
84+
t.snapshot(rendered)
85+
})
86+
87+
test('Markdown.render() should render PlantUML WBS correctly', t => {
88+
const rendered = md.render(markdownFixtures.plantUmlWbs)
89+
t.snapshot(rendered)
90+
})
91+
92+
test('Markdown.render() should render PlantUML Umls correctly', t => {
93+
const rendered = md.render(markdownFixtures.plantUmlUml)
94+
t.snapshot(rendered)
95+
})

tests/lib/snapshots/markdown-test.js.md

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,34 @@ The actual snapshot is saved in `markdown-test.js.snap`.
44

55
Generated by [AVA](https://ava.li).
66

7+
## Markdown.render() should render PlantUML Gantt correctly
8+
9+
> Snapshot 1
10+
11+
`<img src="http://www.plantuml.com/plantuml/svg/SoWkIImgIK_CAodXYWueoY_9BwaiI5L8IItEJC-BLSX9B2ufLZ0qLKX9h2pcYWv9BIvHA82fWaiRu906crsia5YYW6cqUh52QbuAbmEG0DiE0000" alt="uml diagram" />␊
12+
`
13+
14+
## Markdown.render() should render PlantUML MindMaps correctly
15+
16+
> Snapshot 1
17+
18+
`<img src="http://www.plantuml.com/plantuml/svg/JOzD3e8m44Rtd6BMtNW192IM5I29HEDsAbKdeLD2MvNRIsjCMCsRlFd9LpgFipV4Wy4f4o2r8kHC23Yhm3wi9A0X3XzeYNrgwx1H6wvb1KTjqtRJoYhMtexBSAqJUescwoEUq4tn3xp9Fm7XfUS5HiiFO3Gw7SjT4QUCkkKxLy2-WAvl3rkrtEclBdOCXcnMwZN7ByiN" alt="uml diagram" />␊
19+
`
20+
21+
## Markdown.render() should render PlantUML Umls correctly
22+
23+
> Snapshot 1
24+
25+
`<img src="http://www.plantuml.com/plantuml/svg/LOzD2eCm44RtESMtj0jx01V5E_G4Gvngo2_912gbTsz4LBfylCV7p5Y4ibJlbEENG2AocHV1P39hCJ6eOar8bCaZaROqyrDMnzWqXTcn8YqnGzSYqNC-q76sweoW5zOsLi57uMpHz-WESslY0jmVw1AjdaE30IPeLoVUceLTslrL3-2tS9ZA_qZRtm_vgh7PzkOF" alt="uml diagram" />␊
26+
`
27+
28+
## Markdown.render() should render PlantUML WBS correctly
29+
30+
> Snapshot 1
31+
32+
`<img src="http://www.plantuml.com/plantuml/svg/ZP2_JiD03CRtFeNdRF04fR140gdGeREv-z8plVYYimFYxSabKbaxsR9-ylTdRyxLVpvjrz5XDb6OqR6MqEPRYSXPz4BdmsdNTVJAiuP4da1JBLy8lbmxUYxZbE6Wa_CLgUI8IXymS0rf9NeL5yxKDt24EhiKfMDcRNzVO79HcX8RLdvLfZBGa_KtFx2RKcpK7TZ3dTpZfWgskMAZ9jIXr94rW4PubM1RbBZOb-6NtcS9LpgBjlj_1w9QldbPjZHxQ5pg_GC0" alt="uml diagram" />␊
33+
`
34+
735
## Markdown.render() should render footnote correctly
836

937
> Snapshot 1
850 Bytes
Binary file not shown.

0 commit comments

Comments
 (0)