mirror of
https://github.com/mermaid-js/mermaid.git
synced 2025-01-14 06:43:25 +08:00
21 lines
354 B
JavaScript
21 lines
354 B
JavaScript
import { imgSnapshotTest } from '../../helpers/util';
|
|
|
|
describe('State diagram', () => {
|
|
it('should render a state with states in it', () => {
|
|
imgSnapshotTest(
|
|
`
|
|
stateDiagram
|
|
state PersonalizedCockpit {
|
|
Other
|
|
state Parent {
|
|
C
|
|
}
|
|
}
|
|
`,
|
|
{
|
|
logLevel: 0,
|
|
}
|
|
);
|
|
});
|
|
});
|