#3074 Fix for tests
This commit is contained in:
parent
2ab1e162ea
commit
6eef26f107
|
@ -31,6 +31,16 @@
|
|||
|
||||
|
||||
<div class="mermaid" style="width: 50%;">
|
||||
journey
|
||||
title Adding journey diagram functionality to mermaid
|
||||
accTitle: Adding acc journey diagram functionality to mermaid
|
||||
accDescr {
|
||||
My multi-line description
|
||||
of the diagram
|
||||
}
|
||||
section Order from website
|
||||
</div>
|
||||
<div class="mermaid2" style="width: 50%;">
|
||||
pie
|
||||
accTitle: My Pie Chart Accessibility Title
|
||||
accDescr: My Pie Chart Accessibility Description
|
||||
|
@ -41,7 +51,7 @@
|
|||
"Magnesium" : 10.01
|
||||
"Iron" : 5
|
||||
</div>
|
||||
<div class="mermaid" style="width: 50%;">
|
||||
<div class="mermaid2" style="width: 50%;">
|
||||
gitGraph
|
||||
accTitle: My Gitgraph Accessibility Title
|
||||
accDescr: My Gitgraph Accessibility Description
|
||||
|
@ -57,7 +67,7 @@
|
|||
commit
|
||||
commit
|
||||
</div>
|
||||
<div class="mermaid" style="width: 50%;">
|
||||
<div class="mermaid2" style="width: 50%;">
|
||||
sequenceDiagram
|
||||
title: My Sequence Diagram Title
|
||||
accTitle: My Sequence Diagram
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue