mirror of
https://github.com/mermaid-js/mermaid.git
synced 2025-09-03 15:46:43 +02:00
Updated FlowDB instance.
This commit is contained in:
@@ -70,11 +70,11 @@ describe('flow db addClass', () => {
|
|||||||
});
|
});
|
||||||
|
|
||||||
describe('flow db class', () => {
|
describe('flow db class', () => {
|
||||||
let flowDb: FlowDb;
|
let flowDb: FlowDB;
|
||||||
beforeEach(() => {
|
beforeEach(() => {
|
||||||
flowDb = new FlowDb();
|
flowDb = new FlowDB();
|
||||||
});
|
});
|
||||||
// This is to ensure that functions used in flow JISON are exposed as function from FlowDb
|
// This is to ensure that functions used in flow JISON are exposed as function from FlowDB
|
||||||
it('should have functions used in flow JISON as own property', () => {
|
it('should have functions used in flow JISON as own property', () => {
|
||||||
const functionsUsedInParser = [
|
const functionsUsedInParser = [
|
||||||
'setDirection',
|
'setDirection',
|
||||||
@@ -91,7 +91,7 @@ describe('flow db class', () => {
|
|||||||
'setLink',
|
'setLink',
|
||||||
'updateLink',
|
'updateLink',
|
||||||
'updateLinkInterpolate',
|
'updateLinkInterpolate',
|
||||||
] as const satisfies (keyof FlowDb)[];
|
] as const satisfies (keyof FlowDB)[];
|
||||||
|
|
||||||
for (const fun of functionsUsedInParser) {
|
for (const fun of functionsUsedInParser) {
|
||||||
expect(Object.hasOwn(flowDb, fun)).toBe(true);
|
expect(Object.hasOwn(flowDb, fun)).toBe(true);
|
||||||
|
Reference in New Issue
Block a user