This commit is contained in:
Knut Sveidqvist
2022-05-31 20:35:44 +02:00
parent bb5baa65cb
commit bd459fadd3
6 changed files with 97 additions and 105 deletions

View File

@@ -346,6 +346,21 @@ describe('State diagram', () => {
}
);
});
it('v2 A compound state should be able to link to itself', () => {
imgSnapshotTest(
`
stateDiagram
state Active {
Idle
}
Inactive --> Idle: ACT
Active --> Active: LOG
`,
{
logLevel: 0,
}
);
});
it('v2 width of compond state should grow with title if title is wider', () => {
imgSnapshotTest(
`