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
cb892da6
Commit
cb892da6
authored
Apr 08, 2019
by
Winnie Hellmann
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Run yarn eslint --fix
parent
b28ba16a
Changes
4
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
10 additions
and
10 deletions
+10
-10
spec/frontend/filtered_search/services/recent_searches_service_error_spec.js
...red_search/services/recent_searches_service_error_spec.js
+1
-1
spec/frontend/ide/lib/editor_options_spec.js
spec/frontend/ide/lib/editor_options_spec.js
+1
-1
spec/frontend/pages/admin/abuse_reports/abuse_reports_spec.js
.../frontend/pages/admin/abuse_reports/abuse_reports_spec.js
+2
-2
spec/frontend/pages/profiles/show/emoji_menu_spec.js
spec/frontend/pages/profiles/show/emoji_menu_spec.js
+6
-6
No files found.
spec/frontend/filtered_search/services/recent_searches_service_error_spec.js
View file @
cb892da6
...
@@ -8,7 +8,7 @@ describe('RecentSearchesServiceError', () => {
...
@@ -8,7 +8,7 @@ describe('RecentSearchesServiceError', () => {
});
});
it
(
'
instantiates an instance of RecentSearchesServiceError and not an Error
'
,
()
=>
{
it
(
'
instantiates an instance of RecentSearchesServiceError and not an Error
'
,
()
=>
{
expect
(
recentSearchesServiceError
).
toEqual
(
jasmine
.
any
(
RecentSearchesServiceError
));
expect
(
recentSearchesServiceError
).
toEqual
(
expect
.
any
(
RecentSearchesServiceError
));
expect
(
recentSearchesServiceError
.
name
).
toBe
(
'
RecentSearchesServiceError
'
);
expect
(
recentSearchesServiceError
.
name
).
toBe
(
'
RecentSearchesServiceError
'
);
});
});
...
...
spec/frontend/ide/lib/editor_options_spec.js
View file @
cb892da6
...
@@ -2,7 +2,7 @@ import editorOptions from '~/ide/lib/editor_options';
...
@@ -2,7 +2,7 @@ import editorOptions from '~/ide/lib/editor_options';
describe
(
'
Multi-file editor library editor options
'
,
()
=>
{
describe
(
'
Multi-file editor library editor options
'
,
()
=>
{
it
(
'
returns an array
'
,
()
=>
{
it
(
'
returns an array
'
,
()
=>
{
expect
(
editorOptions
).
toEqual
(
jasmine
.
any
(
Array
));
expect
(
editorOptions
).
toEqual
(
expect
.
any
(
Array
));
});
});
it
(
'
contains readOnly option
'
,
()
=>
{
it
(
'
contains readOnly option
'
,
()
=>
{
...
...
spec/frontend/pages/admin/abuse_reports/abuse_reports_spec.js
View file @
cb892da6
...
@@ -25,14 +25,14 @@ describe('Abuse Reports', () => {
...
@@ -25,14 +25,14 @@ describe('Abuse Reports', () => {
it
(
'
should truncate long messages
'
,
()
=>
{
it
(
'
should truncate long messages
'
,
()
=>
{
const
$longMessage
=
findMessage
(
'
LONG MESSAGE
'
);
const
$longMessage
=
findMessage
(
'
LONG MESSAGE
'
);
expect
(
$longMessage
.
data
(
'
originalMessage
'
)).
toEqual
(
jasmine
.
anything
());
expect
(
$longMessage
.
data
(
'
originalMessage
'
)).
toEqual
(
expect
.
anything
());
assertMaxLength
(
$longMessage
);
assertMaxLength
(
$longMessage
);
});
});
it
(
'
should not truncate short messages
'
,
()
=>
{
it
(
'
should not truncate short messages
'
,
()
=>
{
const
$shortMessage
=
findMessage
(
'
SHORT MESSAGE
'
);
const
$shortMessage
=
findMessage
(
'
SHORT MESSAGE
'
);
expect
(
$shortMessage
.
data
(
'
originalMessage
'
)).
not
.
toEqual
(
jasmine
.
anything
());
expect
(
$shortMessage
.
data
(
'
originalMessage
'
)).
not
.
toEqual
(
expect
.
anything
());
});
});
it
(
'
should allow clicking a truncated message to expand and collapse the full message
'
,
()
=>
{
it
(
'
should allow clicking a truncated message to expand and collapse the full message
'
,
()
=>
{
...
...
spec/frontend/pages/profiles/show/emoji_menu_spec.js
View file @
cb892da6
...
@@ -75,19 +75,19 @@ describe('EmojiMenu', () => {
...
@@ -75,19 +75,19 @@ describe('EmojiMenu', () => {
expect
(
emojiMenu
.
registerEventListener
).
toHaveBeenCalledWith
(
expect
(
emojiMenu
.
registerEventListener
).
toHaveBeenCalledWith
(
'
one
'
,
'
one
'
,
jasmine
.
anything
(),
expect
.
anything
(),
'
mouseenter focus
'
,
'
mouseenter focus
'
,
dummyToggleButtonSelector
,
dummyToggleButtonSelector
,
'
mouseenter focus
'
,
'
mouseenter focus
'
,
jasmine
.
anything
(),
expect
.
anything
(),
);
);
expect
(
emojiMenu
.
registerEventListener
).
toHaveBeenCalledWith
(
expect
(
emojiMenu
.
registerEventListener
).
toHaveBeenCalledWith
(
'
on
'
,
'
on
'
,
jasmine
.
anything
(),
expect
.
anything
(),
'
click
'
,
'
click
'
,
dummyToggleButtonSelector
,
dummyToggleButtonSelector
,
jasmine
.
anything
(),
expect
.
anything
(),
);
);
});
});
...
@@ -96,10 +96,10 @@ describe('EmojiMenu', () => {
...
@@ -96,10 +96,10 @@ describe('EmojiMenu', () => {
expect
(
emojiMenu
.
registerEventListener
).
toHaveBeenCalledWith
(
expect
(
emojiMenu
.
registerEventListener
).
toHaveBeenCalledWith
(
'
on
'
,
'
on
'
,
jasmine
.
anything
(),
expect
.
anything
(),
'
click
'
,
'
click
'
,
`.js-awards-block .js-emoji-btn, .
${
dummyMenuClass
}
.js-emoji-btn`
,
`.js-awards-block .js-emoji-btn, .
${
dummyMenuClass
}
.js-emoji-btn`
,
jasmine
.
anything
(),
expect
.
anything
(),
);
);
});
});
});
});
...
...
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