#945 Support for notes, better width and handling of +/-

This commit is contained in:
Knut Sveidqvist
2019-10-06 11:35:46 +02:00
parent 1cb52a602a
commit 4f1186a610
4 changed files with 28 additions and 17 deletions

View File

@@ -8,7 +8,7 @@ describe('state diagram, ', function() {
parser.yy = stateDb;
});
fit('super simple', function() {
it('super simple', function() {
const str = `
stateDiagram
[*] --> State1
@@ -58,7 +58,7 @@ describe('state diagram, ', function() {
scale 350 width
[*] --> State1
State1 --> [*]
State1 : this is a string
State1 : this is a string with - in it
State1 : this is another string
State1 --> State2
@@ -71,7 +71,16 @@ describe('state diagram, ', function() {
it('description after second state', function() {
const str = `stateDiagram\n
scale 350 width
[*] --> State1 : This is the description
[*] --> State1 : This is the description with - in it
State1 --> [*]
`;
parser.parse(str);
});
it('shall handle descriptions inkluding minus signs', function() {
const str = `stateDiagram\n
scale 350 width
[*] --> State1 : This is the description +-!
State1 --> [*]
`;