@@ -14,6 +14,7 @@ describe('Flowcart', () => {
14
14
{ flowchart : { htmlLabels : false } }
15
15
) ;
16
16
} ) ;
17
+
17
18
it ( '2: should render a simple flowchart with htmlLabels' , ( ) => {
18
19
imgSnapshotTest (
19
20
`graph TD
@@ -26,6 +27,7 @@ describe('Flowcart', () => {
26
27
{ flowchart : { htmlLabels : true } }
27
28
) ;
28
29
} ) ;
30
+
29
31
it ( '3: should render a simple flowchart with line breaks' , ( ) => {
30
32
imgSnapshotTest (
31
33
`
@@ -99,6 +101,7 @@ describe('Flowcart', () => {
99
101
{ }
100
102
) ;
101
103
} ) ;
104
+
102
105
it ( '6: should render a flowchart full of icons' , ( ) => {
103
106
imgSnapshotTest (
104
107
`
@@ -178,6 +181,7 @@ describe('Flowcart', () => {
178
181
{ }
179
182
) ;
180
183
} ) ;
184
+
181
185
it ( '8: should render subgraphs' , ( ) => {
182
186
imgSnapshotTest (
183
187
`
@@ -190,7 +194,7 @@ describe('Flowcart', () => {
190
194
) ;
191
195
} ) ;
192
196
193
- it ( '9: should render subgraphs with a title startign with a digit' , ( ) => {
197
+ it ( '9: should render subgraphs with a title starting with a digit' , ( ) => {
194
198
imgSnapshotTest (
195
199
`
196
200
graph TB
@@ -237,7 +241,7 @@ describe('Flowcart', () => {
237
241
) ;
238
242
} ) ;
239
243
240
- it ( '11: should render a flowchart with ling sames and class definitoins ' , ( ) => {
244
+ it ( '11: should render a flowchart with long names and class definitions ' , ( ) => {
241
245
imgSnapshotTest (
242
246
`graph LR
243
247
sid-B3655226-6C29-4D00-B685-3D5C734DC7E1["
@@ -356,6 +360,7 @@ describe('Flowcart', () => {
356
360
}
357
361
) ;
358
362
} ) ;
363
+
359
364
it ( '13: should render hexagons' , ( ) => {
360
365
imgSnapshotTest (
361
366
`
@@ -377,4 +382,18 @@ describe('Flowcart', () => {
377
382
}
378
383
) ;
379
384
} ) ;
385
+
386
+ it ( '14: should render a simple flowchart with comments' , ( ) => {
387
+ imgSnapshotTest (
388
+ `graph TD
389
+ A[Christmas] -->|Get money| B(Go shopping)
390
+ B --> C{Let me think}
391
+ %% this is a comment
392
+ C -->|One| D[Laptop]
393
+ C -->|Two| E[iPhone]
394
+ C -->|Three| F[fa:fa-car Car]
395
+ ` ,
396
+ { flowchart : { htmlLabels : false } }
397
+ ) ;
398
+ } ) ;
380
399
} ) ;
0 commit comments