Resolve CE/EE diff in text_utility_spec

This commit is contained in:
Paul Slaughter 2019-04-11 22:20:45 -05:00
parent d25cdca68f
commit 9779798ac4
No known key found for this signature in database
GPG Key ID: DF5690803C68282A
1 changed files with 6 additions and 8 deletions

View File

@ -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', () => {
it('should remove underscores and uppercase the first letter', () => {
expect(textUtils.humanize('foo_bar')).toEqual('Foo bar');
@ -63,6 +55,12 @@ describe('text_utility', () => {
});
});
describe('capitalizeFirstCharacter', () => {
it('returns string with first letter capitalized', () => {
expect(textUtils.capitalizeFirstCharacter('gitlab')).toEqual('Gitlab');
});
});
describe('slugifyWithHyphens', () => {
it('should replaces whitespaces with hyphens and convert to lower case', () => {
expect(textUtils.slugifyWithHyphens('My Input String')).toEqual('my-input-string');