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
29e0f3bc
Commit
29e0f3bc
authored
Apr 13, 2020
by
Jackie Fraser
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Apply review feedback
parent
89d11eb6
Changes
2
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
56 additions
and
98 deletions
+56
-98
ee/spec/frontend/vue_mr_widget/components/mr_widget_pipeline_container_spec.js
...mr_widget/components/mr_widget_pipeline_container_spec.js
+9
-11
ee/spec/frontend/vue_mr_widget/ee_mr_widget_options_spec.js
ee/spec/frontend/vue_mr_widget/ee_mr_widget_options_spec.js
+47
-87
No files found.
ee/spec/frontend/vue_mr_widget/components/mr_widget_pipeline_container_spec.js
View file @
29e0f3bc
import
{
mount
,
shallowMount
,
createLocalVue
}
from
'
@vue/test-utils
'
;
import
{
mount
,
shallowMount
}
from
'
@vue/test-utils
'
;
import
MergeTrainPositionIndicator
from
'
ee/vue_merge_request_widget/components/merge_train_position_indicator.vue
'
;
import
VisualReviewAppLink
from
'
ee/vue_merge_request_widget/components/visual_review_app_link.vue
'
;
import
{
mockStore
}
from
'
jest/vue_mr_widget/mock_data
'
;
...
...
@@ -11,23 +11,27 @@ describe('MrWidgetPipelineContainer', () => {
let
wrapper
;
let
mock
;
const
factory
=
(
method
=
shallowMount
,
mrUpdates
=
{},
provide
=
{})
=>
{
const
localVue
=
createLocalVue
();
beforeEach
(()
=>
{
mock
=
new
MockAdapter
(
axios
);
mock
.
onGet
().
reply
(
200
,
{});
});
wrapper
=
method
.
call
(
this
,
localVue
.
extend
(
MrWidgetPipelineContainer
),
{
const
factory
=
(
method
=
shallowMount
,
mrUpdates
=
{},
provide
=
{})
=>
{
wrapper
=
method
.
call
(
this
,
MrWidgetPipelineContainer
,
{
propsData
:
{
mr
:
Object
.
assign
({},
mockStore
,
mrUpdates
),
},
provide
:
{
...
provide
,
},
localVue
,
attachToDocument
:
true
,
});
};
afterEach
(()
=>
{
mock
.
restore
();
wrapper
.
destroy
();
wrapper
=
null
;
});
describe
(
'
merge train indicator
'
,
()
=>
{
...
...
@@ -61,9 +65,6 @@ describe('MrWidgetPipelineContainer', () => {
describe
(
'
with anonymous visual review feedback feature flag enabled
'
,
()
=>
{
beforeEach
(()
=>
{
mock
=
new
MockAdapter
(
axios
);
mock
.
onGet
().
reply
(
200
,
{});
factory
(
mount
,
{
...
...
@@ -101,9 +102,6 @@ describe('MrWidgetPipelineContainer', () => {
describe
(
'
with anonymous visual review feedback feature flag disabled
'
,
()
=>
{
beforeEach
(()
=>
{
mock
=
new
MockAdapter
(
axios
);
mock
.
onGet
().
reply
(
200
,
{});
factory
(
mount
,
{
...
...
ee/spec/frontend/vue_mr_widget/ee_mr_widget_options_spec.js
View file @
29e0f3bc
This diff is collapsed.
Click to expand it.
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