UNPKG

mermaid

Version:

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

21 lines (16 loc) 469 B
import { parser } from './parser/example' import exampleDb from './exampleDb' /* eslint-env jasmine */ describe('when parsing an info graph it', function () { beforeEach(function () { parser.yy = exampleDb }) it('should handle an info definition', function () { var str = 'info\nsay: hello' parser.parse(str) }) it('should handle an showMessage statement definition', function () { var str = 'info\nshowInfo' parser.parse(str) }) })