convert the cypress info.spec.js into ts

This commit is contained in:
Yokozuna59
2023-06-15 02:31:51 +03:00
parent 9deae27c82
commit 7e639bec3a
3 changed files with 12 additions and 14 deletions

View File

@@ -1,13 +0,0 @@
import { imgSnapshotTest } from '../../helpers/util.js';
describe('Sequencediagram', () => {
it('should render a simple info diagrams', () => {
imgSnapshotTest(
`
info
showInfo
`,
{}
);
});
});

View 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`, {});
});
});

View File

@@ -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();