UNPKG

mermaid

Version:

Markdownish syntax for generating flowcharts, sequence diagrams, class diagrams, gantt charts and git graphs.

23 lines (19 loc) 484 B
/* eslint-env jasmine */ /** * Created by knut on 14-11-18. */ describe('when parsing an info graph it', function () { var ex beforeEach(function () { ex = require('./parser/example').parser ex.yy = require('./exampleDb') }) it('should handle an info definition', function () { var str = 'info\nsay: hello' ex.parse(str) }) it('should handle an showMessage statement definition', function () { var str = 'info\nshowInfo' ex.parse(str) }) })