mirror of
				https://github.com/mermaid-js/mermaid.git
				synced 2025-10-31 10:54:15 +01:00 
			
		
		
		
	
		
			
				
	
	
		
			22 lines
		
	
	
		
			376 B
		
	
	
	
		
			JavaScript
		
	
	
	
	
	
			
		
		
	
	
			22 lines
		
	
	
		
			376 B
		
	
	
	
		
			JavaScript
		
	
	
	
	
	
| /* eslint-env jest */
 | |
| import { imgSnapshotTest } from '../../helpers/util';
 | |
| 
 | |
| describe('State diagram', () => {
 | |
|   it('should render a state with states in it', () => {
 | |
|     imgSnapshotTest(
 | |
|       `
 | |
|       stateDiagram
 | |
|       state PersonalizedCockpit {
 | |
|         Other
 | |
|         state  Parent {
 | |
|           C
 | |
|         }
 | |
|     }
 | |
|     `,
 | |
|       {
 | |
|         logLevel: 0,
 | |
|       }
 | |
|     );
 | |
|   });
 | |
| });
 | 
