add diagram renderer mocks

This commit is contained in:
Ashley Engelund (weedySeaDragon @ github)
2022-11-17 12:25:14 -08:00
parent 1ad537bc4d
commit f62c5d9698
12 changed files with 205 additions and 0 deletions

View File

@@ -0,0 +1,23 @@
/**
* 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,
};