1179 Add ability to use generics for members

Created new class to handle parsing of members with regex to handle determining type of member and the different elements within.  Also moved addTSpan in drawClass method to this new file.  Finally, I added a "catch all" section in case something fails in the regex to make sure everything gets formatted correctly.

Added more tests and documentation

updating gitignore

Tired of constantly having to ignore files and stash/pop when switching between branches
This commit is contained in:
Justin Greywolf
2020-01-13 16:04:26 -08:00
parent 425b071a50
commit 587592449a
7 changed files with 414 additions and 77 deletions

View File

@@ -289,4 +289,20 @@ describe('Class diagram', () => {
);
cy.get('svg');
});
it('12: should render a simple class diagram with generic types', () => {
imgSnapshotTest(
`
classDiagram
class Class10~T~ {
int[] id
List~int~ ids
test(List~int~ ids) List~bool~
testArray() bool[]
}
`,
{}
);
cy.get('svg');
});
});