mirror of
https://github.com/mermaid-js/mermaid.git
synced 2025-09-18 06:49:47 +02:00
#3074 Cleanup and fixes for issues with accessibility for gantt and journey diagrams
This commit is contained in:
@@ -6,7 +6,7 @@ import { getConfig } from '../../config';
|
||||
import common from '../common/common';
|
||||
import {
|
||||
setAccTitle,
|
||||
getTitle,
|
||||
getAccTitle,
|
||||
getAccDescription,
|
||||
setAccDescription,
|
||||
clear as commonClear,
|
||||
@@ -413,7 +413,7 @@ export default {
|
||||
getDirection,
|
||||
getHead,
|
||||
setAccTitle,
|
||||
getTitle,
|
||||
getAccTitle,
|
||||
getAccDescription,
|
||||
setAccDescription,
|
||||
commitType,
|
||||
|
@@ -660,7 +660,7 @@ describe('when parsing a gitGraph', function () {
|
||||
commit
|
||||
`;
|
||||
parser.parse(str);
|
||||
expect(parser.yy.getTitle()).toBe('This is a title');
|
||||
expect(parser.yy.getAccTitle()).toBe('This is a title');
|
||||
expect(parser.yy.getAccDescription()).toBe('This is a description');
|
||||
});
|
||||
it('should handle a title and a multiline description (accDescr)', () => {
|
||||
@@ -673,7 +673,7 @@ describe('when parsing a gitGraph', function () {
|
||||
commit
|
||||
`;
|
||||
parser.parse(str);
|
||||
expect(parser.yy.getTitle()).toBe('This is a title');
|
||||
expect(parser.yy.getAccTitle()).toBe('This is a title');
|
||||
expect(parser.yy.getAccDescription()).toBe('This is a description\nusing multiple lines');
|
||||
});
|
||||
});
|
||||
|
Reference in New Issue
Block a user