Commit 39aa68b2 authored by Filipa Lacerda's avatar Filipa Lacerda

Merge branch 'fe-fix-ee-diff-in-text-utility-spec' into 'master'

Resolve CE/EE diff in text_utility_spec

See merge request gitlab-org/gitlab-ce!27291
parents 9b0402b4 9779798a
...@@ -23,14 +23,6 @@ describe('text_utility', () => { ...@@ -23,14 +23,6 @@ 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', () => { describe('humanize', () => {
it('should remove underscores and uppercase the first letter', () => { it('should remove underscores and uppercase the first letter', () => {
expect(textUtils.humanize('foo_bar')).toEqual('Foo bar'); expect(textUtils.humanize('foo_bar')).toEqual('Foo bar');
...@@ -63,6 +55,12 @@ describe('text_utility', () => { ...@@ -63,6 +55,12 @@ describe('text_utility', () => {
}); });
}); });
describe('capitalizeFirstCharacter', () => {
it('returns string with first letter capitalized', () => {
expect(textUtils.capitalizeFirstCharacter('gitlab')).toEqual('Gitlab');
});
});
describe('slugifyWithHyphens', () => { describe('slugifyWithHyphens', () => {
it('should replaces whitespaces with hyphens and convert to lower case', () => { it('should replaces whitespaces with hyphens and convert to lower case', () => {
expect(textUtils.slugifyWithHyphens('My Input String')).toEqual('my-input-string'); expect(textUtils.slugifyWithHyphens('My Input String')).toEqual('my-input-string');
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment