mirror of
https://github.com/mermaid-js/mermaid.git
synced 2025-09-22 16:59:48 +02:00
Update tests
This commit is contained in:
@@ -677,4 +677,21 @@ ORDER ||--|{ LINE-ITEM : contains
|
||||
{ logLevel: 1, look: 'handDrawn', htmlLabels: false }
|
||||
);
|
||||
});
|
||||
|
||||
it('should render a not-so-simple ER diagram using elk', () => {
|
||||
imgSnapshotTest(
|
||||
`
|
||||
erDiagram
|
||||
CUSTOMER }|..|{ DELIVERY-ADDRESS : has
|
||||
CUSTOMER ||--o{ ORDER : places
|
||||
CUSTOMER ||--o{ INVOICE : "liable for"
|
||||
DELIVERY-ADDRESS ||--o{ ORDER : receives
|
||||
INVOICE ||--|{ ORDER : covers
|
||||
ORDER ||--|{ ORDER-ITEM : includes
|
||||
PRODUCT-CATEGORY ||--|{ PRODUCT : contains
|
||||
PRODUCT ||--o{ ORDER-ITEM : "ordered in"
|
||||
`,
|
||||
{ logLevel: 1, layout: 'elk' }
|
||||
);
|
||||
});
|
||||
});
|
||||
|
Reference in New Issue
Block a user