#945 White background and forks in composite mode

This commit is contained in:
Knut Sveidqvist
2019-10-10 17:57:29 +02:00
parent 54e6e2f66e
commit 85e58faa78
4 changed files with 61 additions and 5 deletions

View File

@@ -173,6 +173,28 @@ describe('State diagram', () => {
{ logLevel: 0 }
);
});
it('should render forks in composit states', () => {
imgSnapshotTest(
`
stateDiagram
[*]-->TV
state TV {
state fork_state <<fork>>
[*] --> fork_state
fork_state --> State2
fork_state --> State3
state join_state <<join>>
State2 --> join_state
State3 --> join_state
join_state --> State4
State4 --> [*]
}
`,
{ logLevel: 0 }
);
});
it('should render forks and joins', () => {
imgSnapshotTest(
`