Skip to content

Commit

Permalink
convert the cypress info.spec.js into ts
Browse files Browse the repository at this point in the history
  • Loading branch information
Yokozuna59 committed Jun 14, 2023
1 parent 9deae27 commit 7e639be
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 14 deletions.
13 changes: 0 additions & 13 deletions cypress/integration/rendering/info.spec.js

This file was deleted.

11 changes: 11 additions & 0 deletions cypress/integration/rendering/info.spec.ts
Original file line number Diff line number Diff line change
@@ -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 changes: 1 addition & 1 deletion packages/mermaid/src/diagrams/info/info.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
import { parser } from './parser/info.jison';
import { db } from './infoDb.js';

describe('info graph', () => {
describe('info diagram', () => {
beforeEach(() => {
parser.yy = db;
parser.yy.clear();
Expand Down

0 comments on commit 7e639be

Please sign in to comment.