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
0
Merge Requests
0
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
Boxiang Sun
gitlab-ce
Commits
0a671c82
Commit
0a671c82
authored
Oct 04, 2017
by
Tim Zallmann
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fixes the unhandled promise rejection
parent
5c07687b
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
0 deletions
+3
-0
spec/javascripts/repo/components/repo_sidebar_spec.js
spec/javascripts/repo/components/repo_sidebar_spec.js
+2
-0
spec/javascripts/vue_mr_widget/services/mr_widget_service_spec.js
...ascripts/vue_mr_widget/services/mr_widget_service_spec.js
+1
-0
No files found.
spec/javascripts/repo/components/repo_sidebar_spec.js
View file @
0a671c82
...
@@ -161,6 +161,8 @@ describe('RepoSidebar', () => {
...
@@ -161,6 +161,8 @@ describe('RepoSidebar', () => {
window
.
dispatchEvent
(
popEvent
);
window
.
dispatchEvent
(
popEvent
);
expect
(
Helper
.
getContent
.
calls
.
mostRecent
().
args
[
0
].
url
).
toContain
(
file1
.
url
);
expect
(
Helper
.
getContent
.
calls
.
mostRecent
().
args
[
0
].
url
).
toContain
(
file1
.
url
);
window
.
history
.
pushState
({},
null
,
'
/
'
);
});
});
});
});
});
});
...
...
spec/javascripts/vue_mr_widget/services/mr_widget_service_spec.js
View file @
0a671c82
...
@@ -31,6 +31,7 @@ describe('MRWidgetService', () => {
...
@@ -31,6 +31,7 @@ describe('MRWidgetService', () => {
});
});
it
(
'
should have methods defined
'
,
()
=>
{
it
(
'
should have methods defined
'
,
()
=>
{
window
.
history
.
pushState
({},
null
,
'
/
'
);
const
service
=
new
MRWidgetService
(
mr
);
const
service
=
new
MRWidgetService
(
mr
);
expect
(
service
.
merge
()).
toBeDefined
();
expect
(
service
.
merge
()).
toBeDefined
();
...
...
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