Allow overriding sequence diagram configuration (SVG properties) - handling of non existent configuration

This commit is contained in:
knsv
2015-01-14 19:10:39 +01:00
parent 8e050d4223
commit 48500652b3
7 changed files with 1256 additions and 101 deletions

View File

@@ -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');
});
});