mirror of https://github.com/mermaid-js/mermaid
17 lines
337 B
JavaScript
17 lines
337 B
JavaScript
import { parser } from './parser/info.jison';
|
|
import infoDb from './infoDb.js';
|
|
describe('when parsing an info graph it', function () {
|
|
let ex;
|
|
beforeEach(function () {
|
|
ex = parser;
|
|
ex.yy = infoDb;
|
|
});
|
|
|
|
it('should handle an info definition', function () {
|
|
let str = `info
|
|
showInfo`;
|
|
|
|
ex.parse(str);
|
|
});
|
|
});
|