mirror of
https://github.com/mermaid-js/mermaid.git
synced 2025-12-21 11:47:27 +01:00
Fix for broken Flowchart test cases
This commit is contained in:
@@ -10,6 +10,7 @@ describe('[Style] when parsing', () => {
|
|||||||
beforeEach(function() {
|
beforeEach(function() {
|
||||||
flow.parser.yy = flowDb;
|
flow.parser.yy = flowDb;
|
||||||
flow.parser.yy.clear();
|
flow.parser.yy.clear();
|
||||||
|
flow.parser.yy.setGen('gen-2');
|
||||||
});
|
});
|
||||||
|
|
||||||
// log.debug(flow.parser.parse('graph TD;style Q background:#fff;'));
|
// log.debug(flow.parser.parse('graph TD;style Q background:#fff;'));
|
||||||
|
|||||||
@@ -10,8 +10,9 @@ describe('when parsing flowcharts', function() {
|
|||||||
beforeEach(function() {
|
beforeEach(function() {
|
||||||
flow.parser.yy = flowDb;
|
flow.parser.yy = flowDb;
|
||||||
flow.parser.yy.clear();
|
flow.parser.yy.clear();
|
||||||
|
flow.parser.yy.setGen('gen-2');
|
||||||
});
|
});
|
||||||
|
|
||||||
it('should handle chaining of vertices', function() {
|
it('should handle chaining of vertices', function() {
|
||||||
const res = flow.parser.parse(`
|
const res = flow.parser.parse(`
|
||||||
graph TD
|
graph TD
|
||||||
|
|||||||
Reference in New Issue
Block a user