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
f5aa8ce3
Commit
f5aa8ce3
authored
Apr 27, 2021
by
Fernando
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Make spec name lowercase
* Update for diff_utils
parent
1005df22
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
9 deletions
+9
-9
ee/spec/frontend/vulnerabilities/generic_report/types/diff_utils_spec.js
...d/vulnerabilities/generic_report/types/diff_utils_spec.js
+9
-9
No files found.
ee/spec/frontend/vulnerabilities/generic_report/types/diff_utils_spec.js
View file @
f5aa8ce3
...
...
@@ -46,7 +46,7 @@ describe('Report Items Diff Utils', () => {
]);
});
it
(
'
C
orrectly groups whole-line deletions by lines
'
,
()
=>
{
it
(
'
c
orrectly groups whole-line deletions by lines
'
,
()
=>
{
const
before
=
'
a
\n
b
'
;
const
after
=
'
b
'
;
...
...
@@ -58,7 +58,7 @@ describe('Report Items Diff Utils', () => {
checkLineActions
(
lines
[
1
],
[[
LINE_TYPES
.
NORMAL
,
'
b
'
]]);
});
it
(
'
C
orrectly groups whole-line insertions by lines
'
,
()
=>
{
it
(
'
c
orrectly groups whole-line insertions by lines
'
,
()
=>
{
const
before
=
'
x
\n
y
\n
z
'
;
const
after
=
'
x
\n
y
\n
y
\n
z
'
;
...
...
@@ -74,7 +74,7 @@ describe('Report Items Diff Utils', () => {
]);
});
it
(
'
C
orrectly groups empty line deletions
'
,
()
=>
{
it
(
'
c
orrectly groups empty line deletions
'
,
()
=>
{
const
before
=
'
\n\n
'
;
const
after
=
'
\n
'
;
...
...
@@ -100,7 +100,7 @@ describe('Report Items Diff Utils', () => {
});
describe
(
'
createDiffData
'
,
()
=>
{
it
(
'
C
orrectly creates diff lines for single line changes
'
,
()
=>
{
it
(
'
c
orrectly creates diff lines for single line changes
'
,
()
=>
{
const
before
=
'
hello world
'
;
const
after
=
'
HELLO world
'
;
...
...
@@ -117,7 +117,7 @@ describe('Report Items Diff Utils', () => {
]);
});
it
(
'
C
orrectly creates diff lines for single line deletions
'
,
()
=>
{
it
(
'
c
orrectly creates diff lines for single line deletions
'
,
()
=>
{
const
before
=
'
a
\n
b
'
;
const
after
=
'
b
'
;
...
...
@@ -127,7 +127,7 @@ describe('Report Items Diff Utils', () => {
checkLine
(
lines
[
1
],
2
,
1
,
LINE_TYPES
.
NORMAL
,
[[
LINE_TYPES
.
NORMAL
,
'
b
'
]]);
});
it
(
'
C
orrectly tracks line numbers for single-line additions
'
,
()
=>
{
it
(
'
c
orrectly tracks line numbers for single-line additions
'
,
()
=>
{
const
before
=
'
x
\n
y
\n
z
'
;
const
after
=
'
x
\n
y
\n
y
\n
z
'
;
...
...
@@ -140,7 +140,7 @@ describe('Report Items Diff Utils', () => {
checkLine
(
lines
[
3
],
3
,
4
,
LINE_TYPES
.
NORMAL
,
[[
LINE_TYPES
.
NORMAL
,
'
z
'
]]);
});
it
(
'
C
orrectly tracks line numbers for multi-line additions
'
,
()
=>
{
it
(
'
c
orrectly tracks line numbers for multi-line additions
'
,
()
=>
{
const
before
=
'
Hello there
\n
Hello world
\n
hello again
'
;
const
after
=
'
Hello there
\n
Hello World
\n
anew line
\n
hello again
\n
hello again
'
;
...
...
@@ -163,7 +163,7 @@ describe('Report Items Diff Utils', () => {
checkLine
(
lines
[
5
],
undefined
,
5
,
LINE_TYPES
.
ADDED
,
[[
LINE_TYPES
.
ADDED
,
'
hello again
'
]]);
});
it
(
'
C
orrectly diffs empty line deletions
'
,
()
=>
{
it
(
'
c
orrectly diffs empty line deletions
'
,
()
=>
{
const
before
=
'
\n\n
'
;
const
after
=
'
\n
'
;
...
...
@@ -174,7 +174,7 @@ describe('Report Items Diff Utils', () => {
checkLine
(
lines
[
1
],
2
,
undefined
,
LINE_TYPES
.
REMOVED
,
[[
LINE_TYPES
.
REMOVED
,
''
]]);
});
it
(
'
C
orrectly diffs empty line additions
'
,
()
=>
{
it
(
'
c
orrectly diffs empty line additions
'
,
()
=>
{
const
before
=
'
\n
'
;
const
after
=
'
\n\n\n
'
;
...
...
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