Fix for broken Flowchart test cases

This commit is contained in:
Ashish Jain 2020-09-16 22:02:11 +02:00
parent a26c9fca1e
commit 57a208d271
2 changed files with 3 additions and 1 deletions

View File

@ -10,6 +10,7 @@ describe('[Style] when parsing', () => {
beforeEach(function() {
flow.parser.yy = flowDb;
flow.parser.yy.clear();
flow.parser.yy.setGen('gen-2');
});
// log.debug(flow.parser.parse('graph TD;style Q background:#fff;'));

View File

@ -10,8 +10,9 @@ describe('when parsing flowcharts', function() {
beforeEach(function() {
flow.parser.yy = flowDb;
flow.parser.yy.clear();
flow.parser.yy.setGen('gen-2');
});
it('should handle chaining of vertices', function() {
const res = flow.parser.parse(`
graph TD