mirror of
https://github.com/mermaid-js/mermaid.git
synced 2025-09-15 05:19:58 +02:00
convert the cypress info.spec.js into ts
This commit is contained in:
@@ -1,13 +0,0 @@
|
|||||||
import { imgSnapshotTest } from '../../helpers/util.js';
|
|
||||||
|
|
||||||
describe('Sequencediagram', () => {
|
|
||||||
it('should render a simple info diagrams', () => {
|
|
||||||
imgSnapshotTest(
|
|
||||||
`
|
|
||||||
info
|
|
||||||
showInfo
|
|
||||||
`,
|
|
||||||
{}
|
|
||||||
);
|
|
||||||
});
|
|
||||||
});
|
|
11
cypress/integration/rendering/info.spec.ts
Normal file
11
cypress/integration/rendering/info.spec.ts
Normal file
@@ -0,0 +1,11 @@
|
|||||||
|
import { imgSnapshotTest } from '../../helpers/util.js';
|
||||||
|
|
||||||
|
describe('info diagram', () => {
|
||||||
|
it('should handle an info definition', () => {
|
||||||
|
imgSnapshotTest(`info`, {});
|
||||||
|
});
|
||||||
|
|
||||||
|
it('should handle an info definition with showInfo', () => {
|
||||||
|
imgSnapshotTest(`info showInfo`, {});
|
||||||
|
});
|
||||||
|
});
|
@@ -2,7 +2,7 @@
|
|||||||
import { parser } from './parser/info.jison';
|
import { parser } from './parser/info.jison';
|
||||||
import { db } from './infoDb.js';
|
import { db } from './infoDb.js';
|
||||||
|
|
||||||
describe('info graph', () => {
|
describe('info diagram', () => {
|
||||||
beforeEach(() => {
|
beforeEach(() => {
|
||||||
parser.yy = db;
|
parser.yy = db;
|
||||||
parser.yy.clear();
|
parser.yy.clear();
|
||||||
|
Reference in New Issue
Block a user