mirror of
https://github.com/mermaid-js/mermaid.git
synced 2025-08-15 14:29:25 +02:00
added test case
This commit is contained in:
@@ -661,4 +661,13 @@ describe('given text representing a method, ', function () {
|
|||||||
expect(classMember.getDisplayDetails().cssStyle).toBe(abstractCssStyle);
|
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 <int,string> pMap;');
|
||||||
|
});
|
||||||
|
});
|
||||||
});
|
});
|
||||||
|
Reference in New Issue
Block a user