Added directive support to state diagrams

Fixed an issue with markerUnits: (default is 'strokeWidth' not 0
This commit is contained in:
chris moran
2020-07-27 19:44:45 -04:00
parent 4ee65822aa
commit 0299ff0a79
4 changed files with 65 additions and 4 deletions

View File

@@ -26,6 +26,16 @@ describe('state diagram, ', function() {
parser.parse(str);
});
it('simple with directive', function() {
const str = `%%{init: {'logLevel': 0 }}%%
stateDiagram\n
State1 : this is another string
[*] --> State1
State1 --> [*]
`;
parser.parse(str);
});
it('should handle relation definitions', function() {
const str = `stateDiagram\n
[*] --> State1
@@ -337,6 +347,9 @@ describe('state diagram, ', function() {
parser.parse(str);
});
});
describe('when parsing an ignored info graph it', function() {
xit('should handle if statements', function() {
const str = `stateDiagram\n
[*] --> "Order Submitted"