mirror of
https://github.com/mermaid-js/mermaid.git
synced 2025-09-20 07:49:43 +02:00
Draft parser for gantt diagrams.
This commit is contained in:
@@ -424,7 +424,18 @@ describe('when parsing ',function(){
|
||||
expect(edges[0].text).toBe('text including graph space');
|
||||
|
||||
});
|
||||
|
||||
it('should handle keywords',function(){
|
||||
var res = flow.parser.parse('graph TD;V-->a[v]');
|
||||
var vert = flow.parser.yy.getVertices();
|
||||
var edges = flow.parser.yy.getEdges();
|
||||
expect(vert['a'].text).toBe('v');
|
||||
});
|
||||
it('should handle keywords',function(){
|
||||
var res = flow.parser.parse('graph TD;V-->a[v]');
|
||||
var vert = flow.parser.yy.getVertices();
|
||||
var edges = flow.parser.yy.getEdges();
|
||||
expect(vert['a'].text).toBe('v');
|
||||
});
|
||||
});
|
||||
|
||||
describe("it should handle new line type notation",function() {
|
||||
|
Reference in New Issue
Block a user