From 12f11c6721b3be26374c2704083bb9821849779f Mon Sep 17 00:00:00 2001 From: Justin Greywolf Date: Sun, 27 Aug 2023 15:47:22 -0700 Subject: [PATCH] added test case --- packages/mermaid/src/diagrams/class/classTypes.spec.ts | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/packages/mermaid/src/diagrams/class/classTypes.spec.ts b/packages/mermaid/src/diagrams/class/classTypes.spec.ts index 56a865fe32..b52a0860b3 100644 --- a/packages/mermaid/src/diagrams/class/classTypes.spec.ts +++ b/packages/mermaid/src/diagrams/class/classTypes.spec.ts @@ -661,4 +661,13 @@ describe('given text representing a method, ', function () { expect(classMember.getDisplayDetails().cssStyle).toBe(abstractCssStyle); }); }); + + describe('--uncategorized tests--', function () { + it('member name should handle double colons', function () { + const str = `std::map ~int,string~ pMap;`; + + const classMember = new ClassMember(str, 'attribute'); + expect(classMember.getDisplayDetails().displayText).toBe('std::map pMap;'); + }); + }); });