#1110 Adding tests for this case and some calcuations for width

This commit is contained in:
Knut Sveidqvist
2019-12-02 21:10:37 +01:00
parent 32b60edda7
commit 346328156a
5 changed files with 286 additions and 46 deletions

View File

@@ -2,19 +2,20 @@
import { imgSnapshotTest } from '../../helpers/util';
describe('State diagram', () => {
it('should render a flowchart full of circles', () => {
it('should render a state with states in it', () => {
imgSnapshotTest(
`
stateDiagram
State1: The state with a note
note right of State1
Important information! You\ncan write
notes with multiple lines...
Here is another line...
And another line...
end note
stateDiagram
state PersonalizedCockpit {
Other
state Parent {
C
}
}
`,
{}
{
logLevel: 0,
}
);
});
});