diff options
Diffstat (limited to 'utils.extractDisplayName.js')
-rw-r--r-- | utils.extractDisplayName.js | 42 |
1 files changed, 0 insertions, 42 deletions
diff --git a/utils.extractDisplayName.js b/utils.extractDisplayName.js deleted file mode 100644 index d3faef8d..00000000 --- a/utils.extractDisplayName.js +++ /dev/null @@ -1,42 +0,0 @@ -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 () { - - // given - var test = 'helloworld1(int)'; - - // when - var displayName = utils.extractDisplayName(test); - - // then - assert.equal(displayName, 'helloworld1'); - }); - - it('should extract display name from method with two params' , function () { - - // given - var test = 'helloworld2(int,string)'; - - // when - var displayName = utils.extractDisplayName(test); - - // then - assert.equal(displayName, 'helloworld2'); - }); - }); -}); |