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
f2f58a60
Commit
f2f58a60
authored
Nov 08, 2017
by
Tim Zallmann
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'fl-cleanup-test' into 'master'
Cleanup tests See merge request gitlab-org/gitlab-ce!15261
parents
ea4cf98c
1aa4604f
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
0 additions
and
23 deletions
+0
-23
mr_widget_options_spec.js
spec/javascripts/vue_mr_widget/mr_widget_options_spec.js
+0
-23
No files found.
spec/javascripts/vue_mr_widget/mr_widget_options_spec.js
View file @
f2f58a60
import
Vue
from
'vue'
;
import
Vue
from
'vue'
;
import
MRWidgetService
from
'~/vue_merge_request_widget/services/mr_widget_service'
;
import
mrWidgetOptions
from
'~/vue_merge_request_widget/mr_widget_options'
;
import
mrWidgetOptions
from
'~/vue_merge_request_widget/mr_widget_options'
;
import
eventHub
from
'~/vue_merge_request_widget/event_hub'
;
import
eventHub
from
'~/vue_merge_request_widget/event_hub'
;
import
notify
from
'~/lib/utils/notify'
;
import
notify
from
'~/lib/utils/notify'
;
...
@@ -316,28 +315,6 @@ describe('mrWidgetOptions', () => {
...
@@ -316,28 +315,6 @@ describe('mrWidgetOptions', () => {
expect
(
vm
.
pollingInterval
.
stopTimer
).
toHaveBeenCalled
();
expect
(
vm
.
pollingInterval
.
stopTimer
).
toHaveBeenCalled
();
});
});
});
});
describe
(
'createService'
,
()
=>
{
it
(
'should instantiate a Service'
,
()
=>
{
const
endpoints
=
{
mergePath
:
'/nice/path'
,
mergeCheckPath
:
'/nice/path'
,
cancelAutoMergePath
:
'/nice/path'
,
removeWIPPath
:
'/nice/path'
,
sourceBranchPath
:
'/nice/path'
,
ciEnvironmentsStatusPath
:
'/nice/path'
,
statusPath
:
'/nice/path'
,
mergeActionsContentPath
:
'/nice/path'
,
};
const
serviceInstance
=
vm
.
createService
(
endpoints
);
const
isInstanceOfMRService
=
serviceInstance
instanceof
MRWidgetService
;
expect
(
isInstanceOfMRService
).
toBe
(
true
);
Object
.
keys
(
serviceInstance
).
forEach
((
key
)
=>
{
expect
(
serviceInstance
[
key
]).
toBeDefined
();
});
});
});
});
});
describe
(
'components'
,
()
=>
{
describe
(
'components'
,
()
=>
{
...
...
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