Add test for string label

This commit is contained in:
Ibrahim Wassouf
2023-07-13 16:53:29 -03:00
parent 80add648e6
commit bb220b8b87

View File

@@ -486,4 +486,19 @@ describe('Class diagram', () => {
}
`);
});
it('should handle newline in string label', () => {
imgSnapshotTest(`
classDiagram
class A["This has\na newline!"] {
+String boop
-Int beep
#double bop
}
class B["This title also has\na newline"]
B : +with(more)
B : -methods()
`);
});
});