diff options
author | Martin Wortschack <mwortschack@gitlab.com> | 2018-09-08 06:03:00 +0000 |
---|---|---|
committer | Tim Zallmann <tzallmann@gitlab.com> | 2018-09-08 06:03:00 +0000 |
commit | 03ab130e4b112d51ce77260e54d42b44126426c7 (patch) | |
tree | 4009b561f17a300fa33a19872984fb7b54729c00 /spec/javascripts/lib/utils | |
parent | 1d69d26f9f4c950f7c42ad4a7de2f95e11475172 (diff) | |
download | gitlab-ce-03ab130e4b112d51ce77260e54d42b44126426c7.tar.gz |
Resolve "Create new project: Re-add project name field"
Diffstat (limited to 'spec/javascripts/lib/utils')
-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 d60485b1308..ac3270baef5 100644 --- a/spec/javascripts/lib/utils/text_utility_spec.js +++ b/spec/javascripts/lib/utils/text_utility_spec.js @@ -63,6 +63,12 @@ describe('text_utility', () => { }); }); + describe('slugifyWithHyphens', () => { + it('should replaces whitespaces with hyphens and convert to lower case', () => { + expect(textUtils.slugifyWithHyphens('My Input String')).toEqual('my-input-string'); + }); + }); + describe('stripHtml', () => { it('replaces html tag with the default replacement', () => { expect(textUtils.stripHtml('This is a text with <p>html</p>.')).toEqual( |