mirror of
https://github.com/mermaid-js/mermaid.git
synced 2025-09-12 03:49:43 +02:00
Adding example diagram as a template for a new diagram
This commit is contained in:
16
packages/mermaid-example-diagram/src/exampleDiagram.spec.js
Normal file
16
packages/mermaid-example-diagram/src/exampleDiagram.spec.js
Normal file
@@ -0,0 +1,16 @@
|
||||
import { parser } from './parser/info';
|
||||
import infoDb from './infoDb';
|
||||
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);
|
||||
});
|
||||
});
|
Reference in New Issue
Block a user