Ensure consistent naming between documentation and code, also removed unnecessary function

This commit is contained in:
Justin Greywolf
2024-11-08 13:51:05 -08:00
parent df636c6d0a
commit c5106a1d1f
15 changed files with 206 additions and 220 deletions

View File

@@ -650,12 +650,12 @@ class Class10
{ logLevel: 1, htmlLabels: true, layout: 'elk' }
);
});
it('ELK: should render a class with a text label, members and annotation', () => {
it('ELK: should render a class with a text label, attribute and annotation', () => {
imgSnapshotTest(
`classDiagram
class C1["Class 1 with text label"] {
<<interface>>
+member1
+attribute1
}
C1 --> C2`,
{ logLevel: 1, htmlLabels: true, layout: 'elk' }

View File

@@ -650,12 +650,12 @@ class Class10
{ logLevel: 1, htmlLabels: true, look: 'handDrawn' }
);
});
it('HD: should render a class with a text label, members and annotation', () => {
it('HD: should render a class with a text label, attribute and annotation', () => {
imgSnapshotTest(
`classDiagram
class C1["Class 1 with text label"] {
<<interface>>
+member1
+attribute1
}
C1 --> C2`,
{ logLevel: 1, htmlLabels: true, look: 'handDrawn' }

View File

@@ -500,12 +500,12 @@ class Class10
C1 --> C2`
);
});
it('should render a class with a text label, members and annotation', () => {
it('should render a class with a text label, attribute and annotation', () => {
imgSnapshotTest(
`classDiagram
class C1["Class 1 with text label"] {
<<interface>>
+member1
+attribute1
}
C1 --> C2`
);

View File

@@ -647,12 +647,12 @@ class Class10
C1 --> C2`
);
});
it('should render a class with a text label, members and annotation', () => {
it('should render a class with a text label, attribute and annotation', () => {
imgSnapshotTest(
`classDiagram
class C1["Class 1 with text label"] {
<<interface>>
+member1
+attribute1
}
C1 --> C2`
);

View File

@@ -430,7 +430,7 @@ describe('Class diagram', () => {
class \`This\nTitle\nHas\nMany\nNewlines\` {
+String Also
-Stirng Many
#int Members
#int attribute
+And()
-Many()
#Methods()
@@ -444,7 +444,7 @@ describe('Class diagram', () => {
class \`This\nTitle\nHas\nMany\nNewlines\` {
+String Also
-Stirng Many
#int Members
#int attribute
+And()
-Many()
#Methods()
@@ -460,7 +460,7 @@ describe('Class diagram', () => {
class \`This\nTitle\nHas\nMany\nNewlines\` {
+String Also
-Stirng Many
#int Members
#int attribute
+And()
-Many()
#Methods()