Fix for issue #84

This commit is contained in:
knsv
2015-01-03 15:34:49 +01:00
parent c10b4553ae
commit c7e2c2b3c6
3 changed files with 31 additions and 25 deletions

View File

@@ -322,6 +322,17 @@ describe('when parsing ',function(){
expect(edges[0].type).toBe('arrow_cross');
expect(edges[0].text).toBe('text including R TD space');
});
it('should handle `',function(){
var res = flow.parser.parse('graph TD;A--x|text including `|B;');
var vert = flow.parser.yy.getVertices();
var edges = flow.parser.yy.getEdges();
expect(edges[0].type).toBe('arrow_cross');
expect(edges[0].text).toBe('text including `');
});
it('should handle keywords',function(){
var res = flow.parser.parse('graph TD;A--x|text including graph space|B;');