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
1
Merge Requests
1
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
nexedi
gitlab-ce
Commits
36c6d39e
Commit
36c6d39e
authored
Jan 11, 2021
by
Phil Hughes
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fixed failing class name map test
parent
82548650
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
4 deletions
+4
-4
spec/frontend/diffs/components/diff_row_utils_spec.js
spec/frontend/diffs/components/diff_row_utils_spec.js
+4
-4
No files found.
spec/frontend/diffs/components/diff_row_utils_spec.js
View file @
36c6d39e
...
...
@@ -128,10 +128,10 @@ describe('classNameMapCell', () => {
it
.
each
`
line | hll | loggedIn | hovered | expectation
${
undefined
}
|
${
true
}
|
${
true
}
|
${
true
}
|
${[]}
${{
type
:
'
new
'
}
} |
${
false
}
|
${
false
}
|
${
false
}
|
${[
'
new
'
,
{
hll
:
false
,
'
is-over
'
:
false
}]}
${{
type
:
'
new
'
}
} |
${
true
}
|
${
true
}
|
${
false
}
|
${[
'
new
'
,
{
hll
:
true
,
'
is-over
'
:
false
}]}
${{
type
:
'
new
'
}
} |
${
true
}
|
${
false
}
|
${
true
}
|
${[
'
new
'
,
{
hll
:
true
,
'
is-over
'
:
false
}]}
${{
type
:
'
new
'
}
} |
${
true
}
|
${
true
}
|
${
true
}
|
${[
'
new
'
,
{
hll
:
true
,
'
is-over
'
:
true
}]}
${{
type
:
'
new
'
}
} |
${
false
}
|
${
false
}
|
${
false
}
|
${[
'
new
'
,
{
hll
:
false
,
'
is-over
'
:
false
,
new_line
:
true
,
old_line
:
false
}]}
${{
type
:
'
new
'
}
} |
${
true
}
|
${
true
}
|
${
false
}
|
${[
'
new
'
,
{
hll
:
true
,
'
is-over
'
:
false
,
new_line
:
true
,
old_line
:
false
}]}
${{
type
:
'
new
'
}
} |
${
true
}
|
${
false
}
|
${
true
}
|
${[
'
new
'
,
{
hll
:
true
,
'
is-over
'
:
false
,
new_line
:
true
,
old_line
:
false
}]}
${{
type
:
'
new
'
}
} |
${
true
}
|
${
true
}
|
${
true
}
|
${[
'
new
'
,
{
hll
:
true
,
'
is-over
'
:
true
,
new_line
:
true
,
old_line
:
false
}]}
`
(
'
should return $expectation
'
,
({
line
,
hll
,
loggedIn
,
hovered
,
expectation
})
=>
{
const
classes
=
utils
.
classNameMapCell
(
line
,
hll
,
loggedIn
,
hovered
);
expect
(
classes
).
toEqual
(
expectation
);
...
...
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