mirror of
				https://github.com/mermaid-js/mermaid.git
				synced 2025-11-04 04:44:08 +01:00 
			
		
		
		
	Allow underscores in entity names, and entities with no relationships
This commit is contained in:
		@@ -141,4 +141,21 @@ describe('Entity Relationship Diagram', () => {
 | 
			
		||||
        expect(svg).to.not.have.attr('style');
 | 
			
		||||
      });
 | 
			
		||||
  });
 | 
			
		||||
 | 
			
		||||
  it('should render entities that have no relationships', () => {
 | 
			
		||||
    renderGraph(
 | 
			
		||||
      `
 | 
			
		||||
    erDiagram
 | 
			
		||||
        DEAD_PARROT
 | 
			
		||||
        HERMIT
 | 
			
		||||
        RECLUSE
 | 
			
		||||
        SOCIALITE }o--o{ SOCIALITE : "interacts with"
 | 
			
		||||
        RECLUSE }o--o{ SOCIALITE : avoids
 | 
			
		||||
      `,
 | 
			
		||||
      { er: { useMaxWidth: false } }
 | 
			
		||||
    );
 | 
			
		||||
    cy.get('svg');
 | 
			
		||||
  });
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
});
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user