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
5d407faa
Commit
5d407faa
authored
Dec 24, 2020
by
Illya Klymov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Remove deprecated `methods` usage
- replace with parentComponent
parent
5dc5bd3b
Changes
2
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
99 additions
and
129 deletions
+99
-129
spec/frontend/diffs/components/app_spec.js
spec/frontend/diffs/components/app_spec.js
+94
-126
spec/frontend/diffs/components/image_diff_overlay_spec.js
spec/frontend/diffs/components/image_diff_overlay_spec.js
+5
-3
No files found.
spec/frontend/diffs/components/app_spec.js
View file @
5d407faa
This diff is collapsed.
Click to expand it.
spec/frontend/diffs/components/image_diff_overlay_spec.js
View file @
5d407faa
...
...
@@ -21,6 +21,11 @@ describe('Diffs image diff overlay component', () => {
wrapper
=
shallowMount
(
ImageDiffOverlay
,
{
store
,
parentComponent
:
{
data
()
{
return
dimensions
;
},
},
propsData
:
{
discussions
:
[...
imageDiffDiscussions
],
fileHash
:
'
ABC
'
,
...
...
@@ -28,9 +33,6 @@ describe('Diffs image diff overlay component', () => {
renderedHeight
:
200
,
...
props
,
},
methods
:
{
getImageDimensions
:
jest
.
fn
().
mockReturnValue
(
dimensions
),
},
});
}
...
...
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