Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
G
gitlab-ce
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Boxiang Sun
gitlab-ce
Commits
9779798a
Commit
9779798a
authored
Apr 11, 2019
by
Paul Slaughter
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Resolve CE/EE diff in text_utility_spec
parent
d25cdca6
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
8 deletions
+6
-8
spec/frontend/lib/utils/text_utility_spec.js
spec/frontend/lib/utils/text_utility_spec.js
+6
-8
No files found.
spec/frontend/lib/utils/text_utility_spec.js
View file @
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
'
);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment