mirror of
https://github.com/mermaid-js/mermaid.git
synced 2025-09-19 23:39:50 +02:00
Allow overriding sequence diagram configuration (SVG properties) - handling of non existent configuration
This commit is contained in:
@@ -473,7 +473,7 @@ describe('when parsing ',function(){
|
||||
expect(edges[0].stroke).toBe('dotted');
|
||||
});
|
||||
it('it should handle text on lines', function () {
|
||||
var res = flow.parser.parse('graph TD;A== test text with -- ==>B;');
|
||||
var res = flow.parser.parse('graph TD;A== test text with - ==>B;');
|
||||
|
||||
var vert = flow.parser.yy.getVertices();
|
||||
var edges = flow.parser.yy.getEdges();
|
||||
@@ -577,7 +577,15 @@ describe('when parsing ',function(){
|
||||
expect(edges[0].text).toBe('text including graph space');
|
||||
|
||||
});
|
||||
xit('should handle text on open links',function(){
|
||||
var res = flow.parser.parse('graph TD;A-- text including graph space --B');
|
||||
|
||||
var vert = flow.parser.yy.getVertices();
|
||||
var edges = flow.parser.yy.getEdges();
|
||||
|
||||
expect(edges[0].text).toBe('text including graph space');
|
||||
|
||||
});
|
||||
});
|
||||
|
||||
|
||||
|
Reference in New Issue
Block a user