#937 Handling direction keywords in node ids

This commit is contained in:
knsv
2019-09-18 12:56:24 -07:00
parent 244be86207
commit d8397f146b
4 changed files with 76 additions and 19 deletions

View File

@@ -181,6 +181,10 @@ describe('when using mermaid and ', function() {
});
describe('checking validity of input ', function() {
beforeEach(function() {
flowParser.parser.yy = flowDb;
flowDb.clear();
});
it('it should throw for an invalid definiton', function() {
expect(() => mermaid.parse('this is not a mermaid diagram definition')).toThrow();
});