BigW Consortium Gitlab
Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
G
gitlab-ce
Project
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Open sidebar
Forest Godfrey
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
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
0 deletions
+3
-0
repo_sidebar_spec.js
spec/javascripts/repo/components/repo_sidebar_spec.js
+2
-0
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