2019-10-27 15:24:56 +01:00
|
|
|
/* eslint-env jest */
|
|
|
|
import { imgSnapshotTest } from '../../helpers/util';
|
|
|
|
|
|
|
|
describe('State diagram', () => {
|
2019-12-02 21:10:37 +01:00
|
|
|
it('should render a state with states in it', () => {
|
2019-10-27 15:24:56 +01:00
|
|
|
imgSnapshotTest(
|
|
|
|
`
|
2019-12-02 21:10:37 +01:00
|
|
|
stateDiagram
|
|
|
|
state PersonalizedCockpit {
|
|
|
|
Other
|
|
|
|
state Parent {
|
|
|
|
C
|
|
|
|
}
|
|
|
|
}
|
2019-10-27 16:58:32 +01:00
|
|
|
`,
|
2019-12-02 21:10:37 +01:00
|
|
|
{
|
|
|
|
logLevel: 0,
|
|
|
|
}
|
2019-10-27 15:24:56 +01:00
|
|
|
);
|
|
|
|
});
|
|
|
|
});
|