Removed duplicate code

This commit is contained in:
knsv
2015-03-15 14:55:16 +01:00
parent 60392424dc
commit 3781dea498
8 changed files with 51 additions and 247 deletions

View File

@@ -610,6 +610,15 @@ describe('when parsing ',function(){
expect(edges[0].text).toBe('text including graph space and v');
});
it('should handle keywords',function(){
var res = flow.parser.parse('graph TD;A-- text including graph space and v --xB[blav]');
var vert = flow.parser.yy.getVertices();
var edges = flow.parser.yy.getEdges();
expect(edges[0].text).toBe('text including graph space and v');
});
xit('should handle text on open links',function(){
var res = flow.parser.parse('graph TD;A-- text including graph space --B');