diff options
author | Kushal Pandya <kushal@gitlab.com> | 2018-02-07 18:27:44 +0530 |
---|---|---|
committer | Kushal Pandya <kushal@gitlab.com> | 2018-02-07 19:00:11 +0530 |
commit | 99a5c4b93293296b8585da9cb02f04ce9e7a89d3 (patch) | |
tree | f65b12d3611ccbac7bca60ccbd8546f70dfa1b95 /spec/javascripts | |
parent | f718d6414b4f6ab5eb5a344a7e1e6fba34a37349 (diff) | |
download | gitlab-ce-99a5c4b93293296b8585da9cb02f04ce9e7a89d3.tar.gz |
Add `convertToCamelCase` helper method
Diffstat (limited to 'spec/javascripts')
-rw-r--r-- | spec/javascripts/lib/utils/text_utility_spec.js | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/spec/javascripts/lib/utils/text_utility_spec.js b/spec/javascripts/lib/utils/text_utility_spec.js index 69a23d7b2f3..e57a55fa71a 100644 --- a/spec/javascripts/lib/utils/text_utility_spec.js +++ b/spec/javascripts/lib/utils/text_utility_spec.js @@ -72,4 +72,10 @@ describe('text_utility', () => { expect(textUtils.stripHtml('This is a text with <p>html</p>.', ' ')).toEqual('This is a text with html .'); }); }); + + describe('convertToCamelCase', () => { + it('converts snake_case string to camelCase string', () => { + expect(textUtils.convertToCamelCase('snake_case')).toBe('snakeCase'); + }); + }); }); |