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
17226ab3
Commit
17226ab3
authored
Dec 23, 2020
by
Vitaly Slobodin
Committed by
Illya Klymov
Dec 24, 2020
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Apply 6 suggestion(s) to 1 file(s)
parent
5d407faa
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
6 deletions
+6
-6
spec/frontend/diffs/components/app_spec.js
spec/frontend/diffs/components/app_spec.js
+6
-6
No files found.
spec/frontend/diffs/components/app_spec.js
View file @
17226ab3
...
...
@@ -129,7 +129,7 @@ describe('diffs/components/app', () => {
expect
(
wrapper
.
vm
.
fetchDiffFilesBatch
).
toHaveBeenCalled
();
expect
(
wrapper
.
vm
.
fetchCoverageFiles
).
toHaveBeenCalled
();
expect
(
wrapper
.
vm
.
unwatchDiscussions
).
toHaveBeenCalled
();
expect
(
wrapper
.
vm
.
diffFilesLength
).
to
Equal
(
100
);
expect
(
wrapper
.
vm
.
diffFilesLength
).
to
Be
(
100
);
expect
(
wrapper
.
vm
.
unwatchRetrievingBatches
).
toHaveBeenCalled
();
});
...
...
@@ -144,7 +144,7 @@ describe('diffs/components/app', () => {
expect
(
wrapper
.
vm
.
fetchDiffFilesBatch
).
toHaveBeenCalled
();
expect
(
wrapper
.
vm
.
fetchCoverageFiles
).
toHaveBeenCalled
();
expect
(
wrapper
.
vm
.
unwatchDiscussions
).
toHaveBeenCalled
();
expect
(
wrapper
.
vm
.
diffFilesLength
).
to
Equal
(
100
);
expect
(
wrapper
.
vm
.
diffFilesLength
).
to
Be
(
100
);
expect
(
wrapper
.
vm
.
unwatchRetrievingBatches
).
toHaveBeenCalled
();
});
});
...
...
@@ -443,21 +443,21 @@ describe('diffs/components/app', () => {
await
nextTick
();
store
.
state
.
diffs
.
currentDiffFileId
=
'
333
'
;
expect
(
wrapper
.
vm
.
currentDiffIndex
).
to
Equal
(
2
);
expect
(
wrapper
.
vm
.
currentDiffIndex
).
to
Be
(
2
);
wrapper
.
vm
.
jumpToFile
(
+
1
);
expect
(
wrapper
.
vm
.
currentDiffIndex
).
to
Equal
(
2
);
expect
(
wrapper
.
vm
.
currentDiffIndex
).
to
Be
(
2
);
expect
(
spy
).
not
.
toHaveBeenCalled
();
});
it
(
'
does not jump to next file from the last one
'
,
async
()
=>
{
await
nextTick
();
expect
(
wrapper
.
vm
.
currentDiffIndex
).
to
Equal
(
0
);
expect
(
wrapper
.
vm
.
currentDiffIndex
).
to
Be
(
0
);
wrapper
.
vm
.
jumpToFile
(
-
1
);
expect
(
wrapper
.
vm
.
currentDiffIndex
).
to
Equal
(
0
);
expect
(
wrapper
.
vm
.
currentDiffIndex
).
to
Be
(
0
);
expect
(
spy
).
not
.
toHaveBeenCalled
();
});
});
...
...
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