Skip to content

Commit

Permalink
Merge pull request #25 from mermaid-js/develop
Browse files Browse the repository at this point in the history
Merge from mermaid
  • Loading branch information
jgreywolf authored Aug 7, 2020
2 parents 57a5b09 + b99c14b commit c938285
Show file tree
Hide file tree
Showing 16 changed files with 327 additions and 99,461 deletions.
2 changes: 1 addition & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -17,4 +17,4 @@ dist/sequenceTest.html
.vscode/
cypress/platform/current.html
cypress/platform/experimental.html
local/
local/
48 changes: 48 additions & 0 deletions cypress/integration/rendering/classDiagram.spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -305,4 +305,52 @@ describe('Class diagram', () => {
);
cy.get('svg');
});

it('13: should render a simple class diagram with css classes applied', () => {
imgSnapshotTest(
`
classDiagram
class Class10 {
int[] id
List~int~ ids
test(List~int~ ids) List~bool~
testArray() bool[]
}
cssClass "Class10" exClass
`,
{}
);
cy.get('svg');
});

it('14: should render a simple class diagram with css classes applied directly', () => {
imgSnapshotTest(
`
classDiagram
class Class10:::exClass {
int[] id
List~int~ ids
test(List~int~ ids) List~bool~
testArray() bool[]
}
`,
{}
);
cy.get('svg');
});

it('15: should render a simple class diagram with css classes applied two multiple classes', () => {
imgSnapshotTest(
`
classDiagram
class Class10
class Class20
cssClass "Class10, class20" exClass
`,
{}
);
cy.get('svg');
});
});
41 changes: 0 additions & 41 deletions dist/info.html

This file was deleted.

Loading

0 comments on commit c938285

Please sign in to comment.