mirror of
https://github.com/mermaid-js/mermaid.git
synced 2025-01-14 06:43:25 +08:00
32 lines
613 B
JavaScript
32 lines
613 B
JavaScript
/* eslint-env jest */
|
|
import { imgSnapshotTest } from '../../helpers/util.js';
|
|
|
|
describe('User journey diagram', () => {
|
|
it('Simple test', () => {
|
|
imgSnapshotTest(
|
|
`journey
|
|
title Adding journey diagram functionality to mermaid
|
|
section Order from website
|
|
`,
|
|
{}
|
|
);
|
|
});
|
|
|
|
it('should render a user journey chart', () => {
|
|
imgSnapshotTest(
|
|
`
|
|
journey
|
|
title My working day
|
|
section Go to work
|
|
Make tea: 5: Me
|
|
Go upstairs: 3: Me
|
|
Do work: 1: Me, Cat
|
|
section Go home
|
|
Go downstairs: 5: Me
|
|
Sit down: 3: Me
|
|
`,
|
|
{}
|
|
);
|
|
});
|
|
});
|