Skip to content

Commit

Permalink
test(er): add cypress test on entity name alias
Browse files Browse the repository at this point in the history
  • Loading branch information
tomperr committed Aug 22, 2023
1 parent a7ae1b6 commit 4a06bc1
Showing 1 changed file with 17 additions and 0 deletions.
17 changes: 17 additions & 0 deletions cypress/integration/rendering/erDiagram.spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -305,4 +305,21 @@ ORDER ||--|{ LINE-ITEM : contains
{}
);
});

it('should render entities with entity name aliases', () => {
imgSnapshotTest(
`
erDiagram
p[Person] {
varchar(64) firstName
varchar(64) lastName
}
c["Customer Account"] {
varchar(128) email
}
p ||--o| c : has
`,
{ logLevel: 1 }
);
});
});

0 comments on commit 4a06bc1

Please sign in to comment.