summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFilipa Lacerda <filipa@gitlab.com>2019-04-12 08:01:07 +0000
committerFilipa Lacerda <filipa@gitlab.com>2019-04-12 08:01:07 +0000
commit39aa68b20c112192fe3aa130a72a004a379a080a (patch)
tree3d781343e175856c5e938915c1b122174703b4f6
parent9b0402b4637f1be255a331ba2dfa92d6ecfe772f (diff)
parent9779798ac45c2d33175435eec590f025ca9f03a1 (diff)
downloadgitlab-ce-39aa68b20c112192fe3aa130a72a004a379a080a.tar.gz
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
-rw-r--r--spec/frontend/lib/utils/text_utility_spec.js14
1 files changed, 6 insertions, 8 deletions
diff --git a/spec/frontend/lib/utils/text_utility_spec.js b/spec/frontend/lib/utils/text_utility_spec.js
index 3f331055a32..17fdbf606b2 100644
--- a/spec/frontend/lib/utils/text_utility_spec.js
+++ b/spec/frontend/lib/utils/text_utility_spec.js
@@ -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');