Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: Downgrade @mermaid/cli to version 8 to resolve deterministic id … #162

Merged
merged 1 commit into from
Jan 12, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion ERD.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
17 changes: 7 additions & 10 deletions __tests__/issues/138.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -15,16 +15,13 @@ test('id not override before key name', async () => {
expect(svgContent).toContain('UserSetting');

// User has id
expect(svgContent).toContain(
'id="entity-User-attr-1-name" class="er entityLabel">id</text>'
);
expect(svgContent).toContain('id="entity-User-attr-1-name"');
expect(svgContent).toContain('>id</text>');

// UserSetting has id and userId
expect(svgContent).toContain(
'id="entity-UserSetting-attr-1-name" class="er entityLabel">id'
);
expect(svgContent).toContain(
'id="entity-UserSetting-attr-2-name" class="er entityLabel">user_id'
);
expect(svgContent).toContain('id="entity-UserSetting-attr-1-name"');
expect(svgContent).toContain('id="entity-UserSetting-attr-2-name"');
expect(svgContent).toContain('>user_id</text>');
// // UserSetting has a relation to User
expect(svgContent).toContain('id="rel1" class="er relationshipLabel">user');
expect(svgContent).toContain('>user</text>');
});
Loading