diff options
| author | Fatih Acet <acetfatih@gmail.com> | 2017-11-27 20:21:53 +0000 |
|---|---|---|
| committer | Fatih Acet <acetfatih@gmail.com> | 2017-11-27 20:21:53 +0000 |
| commit | f8de23e626f7a1d0b2f80f996a5f129323adc970 (patch) | |
| tree | c2934b2bd013588aa6b3fd8bd5cc9d70bb063a0d /spec/javascripts/lib | |
| parent | a7f6ab952acc58e7ef9a33fba3fbaaa0918572fe (diff) | |
| parent | fe93f9827537e4d761b1874218b009668a914ae4 (diff) | |
| download | gitlab-ce-f8de23e626f7a1d0b2f80f996a5f129323adc970.tar.gz | |
Merge branch 'backport-add-epic-sidebar' into 'master'
Backport of add-epic-sidebar
See merge request gitlab-org/gitlab-ce!15335
Diffstat (limited to 'spec/javascripts/lib')
| -rw-r--r-- | spec/javascripts/lib/utils/text_utility_spec.js | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/spec/javascripts/lib/utils/text_utility_spec.js b/spec/javascripts/lib/utils/text_utility_spec.js index b21bd958f90..1f46c225071 100644 --- a/spec/javascripts/lib/utils/text_utility_spec.js +++ b/spec/javascripts/lib/utils/text_utility_spec.js @@ -23,6 +23,14 @@ describe('text_utility', () => { }); }); + describe('capitalizeFirstCharacter', () => { + it('returns string with first letter capitalized', () => { + expect(textUtils.capitalizeFirstCharacter('gitlab')).toEqual('Gitlab'); + expect(textUtils.highCountTrim(105)).toBe('99+'); + expect(textUtils.highCountTrim(100)).toBe('99+'); + }); + }); + describe('humanize', () => { it('should remove underscores and uppercase the first letter', () => { expect(textUtils.humanize('foo_bar')).toEqual('Foo bar'); |
