mirror of
				https://github.com/mermaid-js/mermaid.git
				synced 2025-11-04 12:54:08 +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,
 | 
						|
      }
 | 
						|
    );
 | 
						|
  });
 | 
						|
});
 |