mirror of
https://github.com/mermaid-js/mermaid.git
synced 2025-09-06 00:56:42 +02:00
€1726 updated test
This commit is contained in:
@@ -327,17 +327,21 @@ end
|
|||||||
it('59: handle styling of subgraphs and links', () => {
|
it('59: handle styling of subgraphs and links', () => {
|
||||||
imgSnapshotTest(
|
imgSnapshotTest(
|
||||||
`
|
`
|
||||||
flowchart TD
|
flowchart TD
|
||||||
A[Christmas] -->|Get money| B(Go shopping)
|
A[Christmas] ==> D
|
||||||
subgraph T ["Test"]
|
A[Christmas] -->|Get money| B(Go shopping)
|
||||||
A
|
A[Christmas] ==> C
|
||||||
B
|
subgraph T ["Test"]
|
||||||
end
|
A
|
||||||
classDef Test fill:#F84E68,stroke:#333,color:white;
|
B
|
||||||
class A,T Test
|
C
|
||||||
classDef TestSub fill:green;
|
end
|
||||||
class T TestSub
|
|
||||||
linkStyle 0 color:orange, stroke: orange;
|
classDef Test fill:#F84E68,stroke:#333,color:white;
|
||||||
|
class A,T Test
|
||||||
|
classDef TestSub fill:green;
|
||||||
|
class T TestSub
|
||||||
|
linkStyle 0,1 color:orange, stroke: orange;
|
||||||
`,
|
`,
|
||||||
{htmlLabels: true, flowchart: {htmlLabels: true}, securityLevel: 'loose'}
|
{htmlLabels: true, flowchart: {htmlLabels: true}, securityLevel: 'loose'}
|
||||||
);
|
);
|
||||||
|
Reference in New Issue
Block a user