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
0f360925
Commit
0f360925
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
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
6 additions
and
15 deletions
+6
-15
ee/spec/frontend/approvals/components/approval_check_popover_spec.js
...ntend/approvals/components/approval_check_popover_spec.js
+1
-4
ee/spec/frontend/approvals/components/approval_check_rule_popover_spec.js
.../approvals/components/approval_check_rule_popover_spec.js
+1
-3
ee/spec/frontend/approvals/components/approvers_list_item_spec.js
...frontend/approvals/components/approvers_list_item_spec.js
+2
-4
ee/spec/frontend/approvals/components/approvers_list_spec.js
ee/spec/frontend/approvals/components/approvers_list_spec.js
+2
-4
No files found.
ee/spec/frontend/approvals/components/approval_check_popover_spec.js
View file @
0f360925
import
Vue
from
'
vue
'
;
import
{
shallowMount
,
createLocalVue
}
from
'
@vue/test-utils
'
;
import
{
shallowMount
}
from
'
@vue/test-utils
'
;
import
{
GlPopover
,
GlLink
}
from
'
@gitlab/ui
'
;
import
{
TEST_HOST
}
from
'
helpers/test_constants
'
;
import
component
from
'
ee/approvals/components/approval_check_popover.vue
'
;
const
localVue
=
createLocalVue
();
describe
(
'
Approval Check Popover
'
,
()
=>
{
let
wrapper
;
beforeEach
(()
=>
{
wrapper
=
shallowMount
(
component
,
{
localVue
,
propsData
:
{
title
:
'
Title
'
,
},
...
...
ee/spec/frontend/approvals/components/approval_check_rule_popover_spec.js
View file @
0f360925
import
Vue
from
'
vue
'
;
import
{
shallowMount
,
createLocalVue
}
from
'
@vue/test-utils
'
;
import
{
shallowMount
}
from
'
@vue/test-utils
'
;
import
{
TEST_HOST
}
from
'
helpers/test_constants
'
;
import
component
from
'
ee/approvals/components/approval_check_rule_popover.vue
'
;
import
{
...
...
@@ -12,9 +12,7 @@ describe('Approval Check Popover', () => {
let
wrapper
;
beforeEach
(()
=>
{
const
localVue
=
createLocalVue
();
wrapper
=
shallowMount
(
component
,
{
localVue
,
propsData
:
{
rule
:
{}
},
sync
:
false
,
});
...
...
ee/spec/frontend/approvals/components/approvers_list_item_spec.js
View file @
0f360925
import
{
shallowMount
,
createLocalVue
}
from
'
@vue/test-utils
'
;
import
{
shallowMount
}
from
'
@vue/test-utils
'
;
import
{
GlButton
}
from
'
@gitlab/ui
'
;
import
{
TYPE_USER
,
TYPE_GROUP
,
TYPE_HIDDEN_GROUPS
}
from
'
ee/approvals/constants
'
;
import
ApproversListItem
from
'
ee/approvals/components/approvers_list_item.vue
'
;
import
HiddenGroupsItem
from
'
ee/approvals/components/hidden_groups_item.vue
'
;
import
Avatar
from
'
~/vue_shared/components/project_avatar/default.vue
'
;
const
localVue
=
createLocalVue
();
const
TEST_USER
=
{
id
:
1
,
type
:
TYPE_USER
,
...
...
@@ -22,9 +21,8 @@ describe('Approvals ApproversListItem', () => {
let
wrapper
;
const
factory
=
(
options
=
{})
=>
{
wrapper
=
shallowMount
(
localVue
.
extend
(
ApproversListItem
)
,
{
wrapper
=
shallowMount
(
ApproversListItem
,
{
...
options
,
localVue
,
sync
:
false
,
});
};
...
...
ee/spec/frontend/approvals/components/approvers_list_spec.js
View file @
0f360925
import
{
shallowMount
,
createLocalVue
}
from
'
@vue/test-utils
'
;
import
{
shallowMount
}
from
'
@vue/test-utils
'
;
import
ApproversListEmpty
from
'
ee/approvals/components/approvers_list_empty.vue
'
;
import
ApproversListItem
from
'
ee/approvals/components/approvers_list_item.vue
'
;
import
ApproversList
from
'
ee/approvals/components/approvers_list.vue
'
;
import
{
TYPE_USER
,
TYPE_GROUP
}
from
'
ee/approvals/constants
'
;
const
localVue
=
createLocalVue
();
const
TEST_APPROVERS
=
[
{
id
:
1
,
type
:
TYPE_GROUP
},
{
id
:
1
,
type
:
TYPE_USER
},
...
...
@@ -16,9 +15,8 @@ describe('ApproversList', () => {
let
wrapper
;
const
factory
=
(
options
=
{})
=>
{
wrapper
=
shallowMount
(
localVue
.
extend
(
ApproversList
)
,
{
wrapper
=
shallowMount
(
ApproversList
,
{
...
options
,
localVue
,
propsData
,
});
};
...
...
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