var assert = require('assert');
var utils = require('../lib/utils/utils.js');
describe('lib/utils/utils', function () {
describe('extractDisplayName', function () {
it('should extract display name from method with no params', function () {
// given
var test = 'helloworld()';
// when
var displayName = utils.extractDisplayName(test);
// then
assert.equal(displayName, 'helloworld');
});
it('should extract display name from method with one param' , function () {
var test = 'helloworld1(int)';
assert.equal(displayName, 'helloworld1');
it('should extract display name from method with two params' , function () {
var test = 'helloworld2(int,string)';
assert.equal(displayName, 'helloworld2');