mirror of
https://github.com/mermaid-js/mermaid.git
synced 2025-11-19 12:14:07 +01:00
#3074 Fix for tests
This commit is contained in:
@@ -285,7 +285,6 @@ export default {
|
||||
addRelation,
|
||||
getDividerId,
|
||||
setDirection,
|
||||
// addDescription,
|
||||
cleanupLabel,
|
||||
lineType,
|
||||
relationType,
|
||||
|
||||
@@ -36,11 +36,13 @@ describe('when parsing a journey diagram it', function () {
|
||||
family shopping
|
||||
}` +
|
||||
'title Adding journey diagram functionality to mermaid\n' +
|
||||
'accTitle: Adding acc journey diagram functionality to mermaid\n' +
|
||||
'section Order from website';
|
||||
|
||||
expect(parserFnConstructor(str)).not.toThrow();
|
||||
expect(journeyDb.getAccDescription()).toBe('A user journey for\nfamily shopping');
|
||||
expect(journeyDb.getAccTitle()).toBe('Adding journey diagram functionality to mermaid');
|
||||
expect(journeyDb.getDiagramTitle()).toBe('Adding journey diagram functionality to mermaid');
|
||||
expect(journeyDb.getAccTitle()).toBe('Adding acc journey diagram functionality to mermaid');
|
||||
});
|
||||
it('it should handle an accessibility title (accDescr)', function () {
|
||||
const str = `journey
|
||||
|
||||
Reference in New Issue
Block a user