mirror of
https://github.com/mermaid-js/mermaid.git
synced 2025-02-04 07:13:25 +08:00
17 lines
362 B
JavaScript
17 lines
362 B
JavaScript
import { parser } from './parser/exampleDiagram';
|
|
import db from './exampleDiagramDb';
|
|
describe('when parsing an info graph it', function () {
|
|
let ex;
|
|
beforeEach(function () {
|
|
ex = parser;
|
|
ex.yy = db;
|
|
});
|
|
|
|
it('should handle an example-diagram definition', function () {
|
|
let str = `example-diagram
|
|
showInfo`;
|
|
|
|
ex.parse(str);
|
|
});
|
|
});
|