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
3b587d6f
Commit
3b587d6f
authored
Jan 08, 2020
by
Illya Klymov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Remove incorrect localVue usage
localVue is required only with use method
parent
4372a6c9
Changes
4
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
6 additions
and
17 deletions
+6
-17
ee/spec/frontend/related_items_tree/components/related_items_tree_app_spec.js
...ated_items_tree/components/related_items_tree_app_spec.js
+2
-5
ee/spec/frontend/related_items_tree/components/related_items_tree_header_spec.js
...d_items_tree/components/related_items_tree_header_spec.js
+1
-3
ee/spec/frontend/related_items_tree/components/tree_item_body_spec.js
...tend/related_items_tree/components/tree_item_body_spec.js
+1
-4
ee/spec/frontend/related_items_tree/components/tree_item_spec.js
.../frontend/related_items_tree/components/tree_item_spec.js
+2
-5
No files found.
ee/spec/frontend/related_items_tree/components/related_items_tree_app_spec.js
View file @
3b587d6f
import
{
shallowMount
,
createLocalVue
}
from
'
@vue/test-utils
'
;
import
{
shallowMount
}
from
'
@vue/test-utils
'
;
import
{
GlLoadingIcon
}
from
'
@gitlab/ui
'
;
import
RelatedItemsTreeApp
from
'
ee/related_items_tree/components/related_items_tree_app.vue
'
;
...
...
@@ -19,8 +19,6 @@ import {
mockParentItem
,
}
from
'
../../../javascripts/related_items_tree/mock_data
'
;
const
localVue
=
createLocalVue
();
const
mockProjects
=
getJSONFixture
(
'
static/projects.json
'
);
const
createComponent
=
()
=>
{
...
...
@@ -29,8 +27,7 @@ const createComponent = () => {
store
.
dispatch
(
'
setInitialConfig
'
,
mockInitialConfig
);
store
.
dispatch
(
'
setInitialParentItem
'
,
mockParentItem
);
return
shallowMount
(
localVue
.
extend
(
RelatedItemsTreeApp
),
{
localVue
,
return
shallowMount
(
RelatedItemsTreeApp
,
{
store
,
sync
:
false
,
});
...
...
ee/spec/frontend/related_items_tree/components/related_items_tree_header_spec.js
View file @
3b587d6f
import
{
shallowMount
,
createLocalVue
}
from
'
@vue/test-utils
'
;
import
{
shallowMount
}
from
'
@vue/test-utils
'
;
import
{
GlButton
}
from
'
@gitlab/ui
'
;
import
RelatedItemsTreeHeader
from
'
ee/related_items_tree/components/related_items_tree_header.vue
'
;
...
...
@@ -15,7 +15,6 @@ import {
const
createComponent
=
({
slots
}
=
{})
=>
{
const
store
=
createDefaultStore
();
const
localVue
=
createLocalVue
();
const
children
=
epicUtils
.
processQueryResponse
(
mockQueryResponse
.
data
.
group
);
store
.
dispatch
(
'
setInitialParentItem
'
,
mockParentItem
);
...
...
@@ -33,7 +32,6 @@ const createComponent = ({ slots } = {}) => {
return
shallowMount
(
RelatedItemsTreeHeader
,
{
attachToDocument
:
true
,
sync
:
false
,
localVue
,
store
,
slots
,
});
...
...
ee/spec/frontend/related_items_tree/components/tree_item_body_spec.js
View file @
3b587d6f
import
{
shallowMount
,
createLocalVue
}
from
'
@vue/test-utils
'
;
import
{
shallowMount
}
from
'
@vue/test-utils
'
;
import
{
GlButton
,
GlLink
}
from
'
@gitlab/ui
'
;
import
ItemWeight
from
'
ee/boards/components/issue_card_weight.vue
'
;
...
...
@@ -28,8 +28,6 @@ const mockItem = Object.assign({}, mockIssue1, {
assignees
:
epicUtils
.
extractIssueAssignees
(
mockIssue1
.
assignees
),
});
const
localVue
=
createLocalVue
();
const
createComponent
=
(
parentItem
=
mockParentItem
,
item
=
mockItem
)
=>
{
const
store
=
createDefaultStore
();
const
children
=
epicUtils
.
processQueryResponse
(
mockQueryResponse
.
data
.
group
);
...
...
@@ -49,7 +47,6 @@ const createComponent = (parentItem = mockParentItem, item = mockItem) => {
return
shallowMount
(
TreeItemBody
,
{
attachToDocument
:
true
,
sync
:
false
,
localVue
,
store
,
propsData
:
{
parentItem
,
...
...
ee/spec/frontend/related_items_tree/components/tree_item_spec.js
View file @
3b587d6f
import
{
shallowMount
,
createLocalVue
}
from
'
@vue/test-utils
'
;
import
{
shallowMount
}
from
'
@vue/test-utils
'
;
import
{
GlButton
,
GlLoadingIcon
}
from
'
@gitlab/ui
'
;
import
TreeItem
from
'
ee/related_items_tree/components/tree_item.vue
'
;
...
...
@@ -23,8 +23,6 @@ const mockItem = Object.assign({}, mockEpic1, {
pathIdSeparator
:
PathIdSeparator
.
Epic
,
});
const
localVue
=
createLocalVue
();
const
createComponent
=
(
parentItem
=
mockParentItem
,
item
=
mockItem
)
=>
{
const
store
=
createDefaultStore
();
const
children
=
epicUtils
.
processQueryResponse
(
mockQueryResponse
.
data
.
group
);
...
...
@@ -45,8 +43,7 @@ const createComponent = (parentItem = mockParentItem, item = mockItem) => {
isSubItem
:
true
,
});
return
shallowMount
(
localVue
.
extend
(
TreeItem
),
{
localVue
,
return
shallowMount
(
TreeItem
,
{
store
,
stubs
:
{
'
tree-root
'
:
TreeRoot
,
...
...
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