mirror of
https://github.com/mermaid-js/mermaid.git
synced 2025-01-14 06:43:25 +08:00
24 lines
370 B
JavaScript
24 lines
370 B
JavaScript
|
/**
|
||
|
* Mocked sequence diagram renderer
|
||
|
*/
|
||
|
|
||
|
import { vi } from 'vitest';
|
||
|
|
||
|
export const bounds = vi.fn();
|
||
|
export const drawActors = vi.fn();
|
||
|
export const drawActorsPopup = vi.fn();
|
||
|
|
||
|
export const setConf = vi.fn();
|
||
|
|
||
|
export const draw = vi.fn().mockImplementation(() => {
|
||
|
return '';
|
||
|
});
|
||
|
|
||
|
export default {
|
||
|
bounds,
|
||
|
drawActors,
|
||
|
drawActorsPopup,
|
||
|
setConf,
|
||
|
draw,
|
||
|
};
|