mirror of
https://github.com/mermaid-js/mermaid.git
synced 2025-09-21 08:19:43 +02:00
#3074 Fix for tests
This commit is contained in:
@@ -31,6 +31,16 @@
|
|||||||
|
|
||||||
|
|
||||||
<div class="mermaid" style="width: 50%;">
|
<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
|
pie
|
||||||
accTitle: My Pie Chart Accessibility Title
|
accTitle: My Pie Chart Accessibility Title
|
||||||
accDescr: My Pie Chart Accessibility Description
|
accDescr: My Pie Chart Accessibility Description
|
||||||
@@ -41,7 +51,7 @@
|
|||||||
"Magnesium" : 10.01
|
"Magnesium" : 10.01
|
||||||
"Iron" : 5
|
"Iron" : 5
|
||||||
</div>
|
</div>
|
||||||
<div class="mermaid" style="width: 50%;">
|
<div class="mermaid2" style="width: 50%;">
|
||||||
gitGraph
|
gitGraph
|
||||||
accTitle: My Gitgraph Accessibility Title
|
accTitle: My Gitgraph Accessibility Title
|
||||||
accDescr: My Gitgraph Accessibility Description
|
accDescr: My Gitgraph Accessibility Description
|
||||||
@@ -57,7 +67,7 @@
|
|||||||
commit
|
commit
|
||||||
commit
|
commit
|
||||||
</div>
|
</div>
|
||||||
<div class="mermaid" style="width: 50%;">
|
<div class="mermaid2" style="width: 50%;">
|
||||||
sequenceDiagram
|
sequenceDiagram
|
||||||
title: My Sequence Diagram Title
|
title: My Sequence Diagram Title
|
||||||
accTitle: My Sequence Diagram
|
accTitle: My Sequence Diagram
|
||||||
|
@@ -285,7 +285,6 @@ export default {
|
|||||||
addRelation,
|
addRelation,
|
||||||
getDividerId,
|
getDividerId,
|
||||||
setDirection,
|
setDirection,
|
||||||
// addDescription,
|
|
||||||
cleanupLabel,
|
cleanupLabel,
|
||||||
lineType,
|
lineType,
|
||||||
relationType,
|
relationType,
|
||||||
|
@@ -36,11 +36,13 @@ describe('when parsing a journey diagram it', function () {
|
|||||||
family shopping
|
family shopping
|
||||||
}` +
|
}` +
|
||||||
'title Adding journey diagram functionality to mermaid\n' +
|
'title Adding journey diagram functionality to mermaid\n' +
|
||||||
|
'accTitle: Adding acc journey diagram functionality to mermaid\n' +
|
||||||
'section Order from website';
|
'section Order from website';
|
||||||
|
|
||||||
expect(parserFnConstructor(str)).not.toThrow();
|
expect(parserFnConstructor(str)).not.toThrow();
|
||||||
expect(journeyDb.getAccDescription()).toBe('A user journey for\nfamily shopping');
|
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 () {
|
it('it should handle an accessibility title (accDescr)', function () {
|
||||||
const str = `journey
|
const str = `journey
|
||||||
|
Reference in New Issue
Block a user