mirror of
https://github.com/mermaid-js/mermaid.git
synced 2025-01-28 07:03:17 +08:00
Add test case for tiltedCylinder
This commit is contained in:
parent
89e4de1dd0
commit
f140d1ab45
@ -18,12 +18,22 @@ describe('newShapes', () => {
|
||||
{}
|
||||
);
|
||||
});
|
||||
it('3: should render new FlowChart for New Shapes', () => {
|
||||
it('3: should render new tiltedCylinder shape', () => {
|
||||
imgSnapshotTest(
|
||||
`flowchart
|
||||
KS --> AC@{ shape: tiltedCylinder, label:"This is Final Label" }@
|
||||
RE --> AC
|
||||
`,
|
||||
{}
|
||||
);
|
||||
});
|
||||
it('4: should render new FlowChart for New Shapes', () => {
|
||||
renderGraph(
|
||||
`
|
||||
flowchart
|
||||
A@{ shape: stateStart }@
|
||||
B@{ shape: crossedCircle, label: "Start Defining Test Case" }@
|
||||
C@{ shape: tiltedCylinder, label: "write your Test Case"}@
|
||||
E@{ shape: waveRectangle, label: "Execute Test Case" }@
|
||||
F@{ shape: slopedRect, label: "Test Passed?" }@
|
||||
G@{ shape: bowTieRect, label: "Pass" }@
|
||||
@ -31,7 +41,8 @@ describe('newShapes', () => {
|
||||
I@{ shape: curvedTrapezoid, label: "End" }@
|
||||
|
||||
A --> B
|
||||
B --> E
|
||||
B --> C
|
||||
C --> E
|
||||
E --> F
|
||||
F -->|Yes| G
|
||||
F -->|No| H
|
||||
|
Loading…
x
Reference in New Issue
Block a user