Allow underscores in entity names, and entities with no relationships

This commit is contained in:
Adrian Hall
2020-10-23 10:00:17 +01:00
parent 3f60107885
commit 245e25f4b7
4 changed files with 50 additions and 11 deletions

View File

@@ -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');
});
});