#945 Handling simple state statements

This commit is contained in:
knsv
2019-09-21 08:50:32 -07:00
parent 51bf4a4c5c
commit 6f054519e7
2 changed files with 43 additions and 11 deletions

View File

@@ -59,6 +59,27 @@ describe('state diagram, ', function() {
parser.parse(str);
});
it('description after second state', function() {
const str = `stateDiagram\n
scale 350 width
[*] --> State1 : This is the description
State1 --> [*]
`;
parser.parse(str);
});
it('should handle state statements', function() {
const str = `stateDiagram\n
state Configuring {
[*] --> NewValueSelection
NewValueSelection --> NewValuePreview : EvNewValue
NewValuePreview --> NewValueSelection : EvNewValueRejected
NewValuePreview --> NewValueSelection : EvNewValueSaved1
}
`;
parser.parse(str);
});
xit('should handle relation definitions', function() {
const str = `stateDiagram\n
state Configuring {