#3074 Fix for tests

This commit is contained in:
Knut Sveidqvist
2022-05-24 18:33:13 +02:00
parent 2ab1e162ea
commit 6eef26f107
3 changed files with 15 additions and 4 deletions

View File

@@ -285,7 +285,6 @@ export default {
addRelation,
getDividerId,
setDirection,
// addDescription,
cleanupLabel,
lineType,
relationType,

View File

@@ -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