mirror of
https://github.com/mermaid-js/mermaid.git
synced 2025-09-18 06:49:47 +02:00
#945 Rendering of labels and new label positioning algorithm
This commit is contained in:
@@ -304,6 +304,24 @@ describe('state diagram, ', function() {
|
||||
note right of NotShooting : This is a note on a composite state
|
||||
`;
|
||||
|
||||
parser.parse(str);
|
||||
});
|
||||
xit('should handle if statements', function() {
|
||||
const str = `stateDiagram\n
|
||||
[*] --> "Order Submitted"
|
||||
if "Payment Accepted" then
|
||||
-->[yes] "Pack products"
|
||||
--> "Send parcel"
|
||||
-right-> (*)
|
||||
else
|
||||
->[no] "Send error message"
|
||||
-->[Cancel Order] [*]
|
||||
endif
|
||||
}
|
||||
|
||||
note right of NotShooting : This is a note on a composite state
|
||||
`;
|
||||
|
||||
parser.parse(str);
|
||||
});
|
||||
});
|
||||
|
Reference in New Issue
Block a user