Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

1378 additional qualifiers bug with multiple arguments #1446

Prev Previous commit
1378-Added additional test
  • Loading branch information
jgreywolf committed Jun 9, 2020
commit 67e167427cbfac981afbcaafbc5595c1b49a7b44
8 changes: 8 additions & 0 deletions src/diagrams/class/svgDraw.spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -83,6 +83,14 @@ describe('class member Renderer, ', function () {
expect(actual.cssStyle).toBe('');
});

it('should handle simple method declaration with multiple parameters', function () {
const str = 'foo(int id, object thing)';
let actual = svgDraw.parseMember(str);

expect(actual.displayText).toBe('foo(int id, object thing)');
expect(actual.cssStyle).toBe('');
});

it('should handle simple method declaration with single item in parameters', function () {
const str = 'foo(id)';
let actual = svgDraw.parseMember(str);
Expand Down