Update tests

This commit is contained in:
yari-dewalt
2024-10-17 17:58:46 -07:00
parent 1d68c4f075
commit c789172b89
2 changed files with 65 additions and 47 deletions

View File

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