Update handling of classes and add support for default class

This commit is contained in:
yari-dewalt
2024-10-24 10:18:17 -07:00
parent 1b34077f55
commit 01e5346004
6 changed files with 42 additions and 21 deletions

View File

@@ -634,5 +634,19 @@ describe('Entity Relationship Diagram Unified', () => {
{ ...options, htmlLabels: false }
);
});
it(`${description}should render entities with styles applied from the default class and other styles`, () => {
imgSnapshotTest(
`
erDiagram
c[CUSTOMER]
p[PERSON]:::blue
classDef blue stroke:lightblue, color: #0000FF
classDef default fill:pink
style c color:green
`,
{ ...options }
);
});
});
});