Ensure empty quoted relationship labels are accepted in ER diagrams

This commit is contained in:
Adrian Hall
2020-05-23 13:33:44 +01:00
parent 0ac48a431a
commit f1c05bc909
3 changed files with 32 additions and 5 deletions

View File

@@ -88,4 +88,17 @@ describe('Entity Relationship Diagram', () => {
);
cy.get('svg');
});
it('should render an ER diagram with blank or empty labels', () => {
imgSnapshotTest(
`
erDiagram
BOOK }|..|{ AUTHOR : ""
BOOK }|..|{ GENRE : " "
AUTHOR }|..|{ GENRE : " "
`,
{logLevel : 1}
);
cy.get('svg');
});
});