mirror of
https://github.com/mermaid-js/mermaid.git
synced 2025-09-05 16:46:43 +02:00
Update and add new imgSnapshotTest
This commit is contained in:
@@ -895,8 +895,8 @@ graph TD
|
|||||||
imgSnapshotTest(
|
imgSnapshotTest(
|
||||||
`
|
`
|
||||||
graph TD
|
graph TD
|
||||||
classDef default fill:#000,stroke:#000,stroke-width:4px,color:#fff
|
classDef default fill:#a34,stroke:#000,stroke-width:4px,color:#fff
|
||||||
default --> default2
|
hello --> default
|
||||||
`,
|
`,
|
||||||
{ htmlLabels: true, flowchart: { htmlLabels: true }, securityLevel: 'loose' }
|
{ htmlLabels: true, flowchart: { htmlLabels: true }, securityLevel: 'loose' }
|
||||||
);
|
);
|
||||||
@@ -907,4 +907,16 @@ graph TD
|
|||||||
a_node("This has an escaped \\" in it") -- "edge string can escape too \\"" --> b_node
|
a_node("This has an escaped \\" in it") -- "edge string can escape too \\"" --> b_node
|
||||||
`);
|
`);
|
||||||
});
|
});
|
||||||
|
it('68: should be able to style default node independently', () => {
|
||||||
|
imgSnapshotTest(
|
||||||
|
`
|
||||||
|
flowchart TD
|
||||||
|
classDef default fill:#a34
|
||||||
|
hello --> default
|
||||||
|
|
||||||
|
style default stroke:#000,stroke-width:4px
|
||||||
|
`,
|
||||||
|
{ htmlLabels: true, flowchart: { htmlLabels: true }, securityLevel: 'loose' }
|
||||||
|
);
|
||||||
|
});
|
||||||
});
|
});
|
||||||
|
Reference in New Issue
Block a user