mermaid/__mocks__/flowRenderer-v2.js
Ashley Engelund (weedySeaDragon @ github) f62c5d9698 add diagram renderer mocks
2022-11-17 12:25:14 -08:00

25 lines
419 B
JavaScript

/**
* Mocked flow (flowchart) diagram v2 renderer
*/
import { vi } from 'vitest';
export const setConf = vi.fn();
export const addVertices = vi.fn();
export const addEdges = vi.fn();
export const getClasses = vi.fn().mockImplementation(() => {
return {};
});
export const draw = vi.fn().mockImplementation(() => {
return '';
});
export default {
setConf,
addVertices,
addEdges,
getClasses,
draw,
};