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
d38327b2
Commit
d38327b2
authored
Sep 15, 2020
by
Phil Hughes
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fixed failing specs
Re-added feature flag to specs
parent
f5f4460f
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
4 deletions
+4
-4
spec/frontend/diffs/components/diff_file_spec.js
spec/frontend/diffs/components/diff_file_spec.js
+3
-3
spec/spec_helper.rb
spec/spec_helper.rb
+1
-1
No files found.
spec/frontend/diffs/components/diff_file_spec.js
View file @
d38327b2
...
...
@@ -215,7 +215,7 @@ describe('DiffFile', () => {
it
(
'
calls handleLoadCollapsedDiff if collapsed changed & file has no lines
'
,
done
=>
{
jest
.
spyOn
(
vm
,
'
handleLoadCollapsedDiff
'
).
mockImplementation
(()
=>
{});
vm
.
file
.
highlighted_diff_lines
=
undefined
;
vm
.
file
.
highlighted_diff_lines
=
[]
;
vm
.
file
.
parallel_diff_lines
=
[];
vm
.
isCollapsed
=
true
;
...
...
@@ -242,8 +242,8 @@ describe('DiffFile', () => {
jest
.
spyOn
(
vm
,
'
handleLoadCollapsedDiff
'
).
mockImplementation
(()
=>
{});
vm
.
file
.
highlighted_diff_lines
=
undefined
;
vm
.
file
.
parallel_diff_lines
=
[]
;
vm
.
file
.
highlighted_diff_lines
=
[]
;
vm
.
file
.
parallel_diff_lines
=
undefined
;
vm
.
isCollapsed
=
true
;
vm
.
$nextTick
()
...
...
spec/spec_helper.rb
View file @
d38327b2
...
...
@@ -202,7 +202,7 @@ RSpec.configure do |config|
# The following can be removed once we are confident the
# unified diff lines works as expected
#
stub_feature_flags(unified_diff_lines: false)
stub_feature_flags
(
unified_diff_lines:
false
)
# Merge request widget GraphQL requests are disabled in the tests
# for now whilst we migrate as much as we can over the GraphQL
...
...
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