added test case

This commit is contained in:
Justin Greywolf
2023-08-27 15:47:22 -07:00
parent b513169f12
commit 12f11c6721

View File

@@ -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;');
});
});
}); });