mirror of
				https://github.com/mermaid-js/mermaid.git
				synced 2025-10-31 02:44:17 +01:00 
			
		
		
		
	
		
			
				
	
	
		
			21 lines
		
	
	
		
			359 B
		
	
	
	
		
			JavaScript
		
	
	
	
	
	
			
		
		
	
	
			21 lines
		
	
	
		
			359 B
		
	
	
	
		
			JavaScript
		
	
	
	
	
	
| import { imgSnapshotTest } from '../../helpers/util.ts';
 | |
| 
 | |
| describe('Current diagram', () => {
 | |
|   it('should render a state with states in it', () => {
 | |
|     imgSnapshotTest(
 | |
|       `
 | |
|       stateDiagram
 | |
|       state PersonalizedCockpit {
 | |
|         Other
 | |
|         state  Parent {
 | |
|           C
 | |
|         }
 | |
|     }
 | |
|     `,
 | |
|       {
 | |
|         logLevel: 0,
 | |
|       }
 | |
|     );
 | |
|   });
 | |
| });
 | 
