mirror of
				https://github.com/mermaid-js/mermaid.git
				synced 2025-11-04 12:54:08 +01:00 
			
		
		
		
	
		
			
				
	
	
		
			20 lines
		
	
	
		
			318 B
		
	
	
	
		
			JavaScript
		
	
	
	
	
	
			
		
		
	
	
			20 lines
		
	
	
		
			318 B
		
	
	
	
		
			JavaScript
		
	
	
	
	
	
import { imgSnapshotTest } from '../../helpers/util.ts';
 | 
						|
 | 
						|
describe('Zen UML', () => {
 | 
						|
  it('Basic Zen UML diagram', () => {
 | 
						|
    imgSnapshotTest(
 | 
						|
      `
 | 
						|
    zenuml
 | 
						|
			A.method() {
 | 
						|
        if(x) {
 | 
						|
          B.method() {
 | 
						|
            selfCall() { return X }
 | 
						|
          }
 | 
						|
        }
 | 
						|
      }
 | 
						|
    `,
 | 
						|
      {}
 | 
						|
    );
 | 
						|
  });
 | 
						|
});
 |