mirror of
				https://github.com/mermaid-js/mermaid.git
				synced 2025-10-26 08:24:07 +01:00 
			
		
		
		
	
		
			
				
	
	
		
			23 lines
		
	
	
		
			419 B
		
	
	
	
		
			JavaScript
		
	
	
	
	
	
			
		
		
	
	
			23 lines
		
	
	
		
			419 B
		
	
	
	
		
			JavaScript
		
	
	
	
	
	
| /**
 | |
|  * Mocked state diagram v2 renderer
 | |
|  */
 | |
| 
 | |
| import { vi } from 'vitest';
 | |
| 
 | |
| export const setConf = vi.fn();
 | |
| export const getClasses = vi.fn().mockImplementation(() => {
 | |
|   return {};
 | |
| });
 | |
| export const stateDomId = vi.fn().mockImplementation(() => {
 | |
|   return 'mocked-stateDiagram-stateDomId';
 | |
| });
 | |
| export const draw = vi.fn().mockImplementation(() => {
 | |
|   return '';
 | |
| });
 | |
| 
 | |
| export default {
 | |
|   setConf,
 | |
|   getClasses,
 | |
|   draw,
 | |
| };
 | 
