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
399ec694
Commit
399ec694
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
9
Show whitespace changes
Inline
Side-by-side
Showing
9 changed files
with
9 additions
and
12 deletions
+9
-12
ee/spec/frontend/dependencies/components/app_spec.js
ee/spec/frontend/dependencies/components/app_spec.js
+1
-4
ee/spec/frontend/dependencies/components/dependencies_actions_spec.js
...tend/dependencies/components/dependencies_actions_spec.js
+1
-1
ee/spec/frontend/dependencies/components/dependencies_table_row_spec.js
...nd/dependencies/components/dependencies_table_row_spec.js
+1
-1
ee/spec/frontend/dependencies/components/dependencies_table_spec.js
...ontend/dependencies/components/dependencies_table_spec.js
+1
-1
ee/spec/frontend/dependencies/components/dependency_license_links_spec.js
.../dependencies/components/dependency_license_links_spec.js
+1
-1
ee/spec/frontend/dependencies/components/dependency_list_incomplete_alert_spec.js
...ncies/components/dependency_list_incomplete_alert_spec.js
+1
-1
ee/spec/frontend/dependencies/components/dependency_list_job_failed_alert_spec.js
...ncies/components/dependency_list_job_failed_alert_spec.js
+1
-1
ee/spec/frontend/dependencies/components/dependency_vulnerability_spec.js
.../dependencies/components/dependency_vulnerability_spec.js
+1
-1
ee/spec/frontend/dependencies/components/paginated_dependencies_table_spec.js
...endencies/components/paginated_dependencies_table_spec.js
+1
-1
No files found.
ee/spec/frontend/dependencies/components/app_spec.js
View file @
399ec694
import
{
GlBadge
,
GlEmptyState
,
GlLoadingIcon
,
GlTab
,
GlLink
}
from
'
@gitlab/ui
'
;
import
{
createLocalVue
,
mount
}
from
'
@vue/test-utils
'
;
import
{
mount
}
from
'
@vue/test-utils
'
;
import
{
TEST_HOST
}
from
'
helpers/test_constants
'
;
import
createStore
from
'
ee/dependencies/store
'
;
import
{
addListType
}
from
'
ee/dependencies/store/utils
'
;
...
...
@@ -25,8 +25,6 @@ describe('DependenciesApp component', () => {
};
const
factory
=
(
props
=
basicAppProps
)
=>
{
const
localVue
=
createLocalVue
();
store
=
createStore
();
addListType
(
store
,
DEPENDENCY_LIST_TYPES
.
vulnerable
);
jest
.
spyOn
(
store
,
'
dispatch
'
).
mockImplementation
();
...
...
@@ -35,7 +33,6 @@ describe('DependenciesApp component', () => {
const
stubs
=
Object
.
keys
(
DependenciesApp
.
components
).
filter
(
canBeStubbed
);
wrapper
=
mount
(
DependenciesApp
,
{
localVue
,
store
,
sync
:
false
,
attachToDocument
:
true
,
...
...
ee/spec/frontend/dependencies/components/dependencies_actions_spec.js
View file @
399ec694
...
...
@@ -17,7 +17,7 @@ describe('DependenciesActions component', () => {
store
=
createStore
();
jest
.
spyOn
(
store
,
'
dispatch
'
).
mockImplementation
();
wrapper
=
shallowMount
(
localVue
.
extend
(
DependenciesActions
)
,
{
wrapper
=
shallowMount
(
DependenciesActions
,
{
...
options
,
localVue
,
store
,
...
...
ee/spec/frontend/dependencies/components/dependencies_table_row_spec.js
View file @
399ec694
...
...
@@ -11,7 +11,7 @@ describe('DependenciesTableRow component', () => {
const
factory
=
({
propsData
,
...
options
}
=
{})
=>
{
const
localVue
=
createLocalVue
();
wrapper
=
shallowMount
(
localVue
.
extend
(
DependenciesTableRow
)
,
{
wrapper
=
shallowMount
(
DependenciesTableRow
,
{
...
options
,
localVue
,
sync
:
false
,
...
...
ee/spec/frontend/dependencies/components/dependencies_table_spec.js
View file @
399ec694
...
...
@@ -9,7 +9,7 @@ describe('DependenciesTable component', () => {
const
factory
=
({
propsData
,
...
options
}
=
{})
=>
{
const
localVue
=
createLocalVue
();
wrapper
=
shallowMount
(
localVue
.
extend
(
DependenciesTable
)
,
{
wrapper
=
shallowMount
(
DependenciesTable
,
{
...
options
,
localVue
,
sync
:
false
,
...
...
ee/spec/frontend/dependencies/components/dependency_license_links_spec.js
View file @
399ec694
...
...
@@ -18,7 +18,7 @@ describe('DependencyLicenseLinks component', () => {
const
licenses
=
addUrls
(
createLicenses
(
numLicenses
),
numLicensesWithUrl
);
const
localVue
=
createLocalVue
();
wrapper
=
shallowMount
(
localVue
.
extend
(
DependenciesLicenseLinks
)
,
{
wrapper
=
shallowMount
(
DependenciesLicenseLinks
,
{
sync
:
false
,
attachToDocument
:
true
,
localVue
,
...
...
ee/spec/frontend/dependencies/components/dependency_list_incomplete_alert_spec.js
View file @
399ec694
...
...
@@ -8,7 +8,7 @@ describe('DependencyListIncompleteAlert component', () => {
const
factory
=
(
options
=
{})
=>
{
const
localVue
=
createLocalVue
();
wrapper
=
shallowMount
(
localVue
.
extend
(
DependencyListIncompleteAlert
)
,
{
wrapper
=
shallowMount
(
DependencyListIncompleteAlert
,
{
localVue
,
sync
:
false
,
...
options
,
...
...
ee/spec/frontend/dependencies/components/dependency_list_job_failed_alert_spec.js
View file @
399ec694
...
...
@@ -13,7 +13,7 @@ describe('DependencyListJobFailedAlert component', () => {
const
factory
=
(
options
=
{})
=>
{
const
localVue
=
createLocalVue
();
wrapper
=
shallowMount
(
localVue
.
extend
(
DependencyListJobFailedAlert
)
,
{
wrapper
=
shallowMount
(
DependencyListJobFailedAlert
,
{
localVue
,
sync
:
false
,
...
options
,
...
...
ee/spec/frontend/dependencies/components/dependency_vulnerability_spec.js
View file @
399ec694
...
...
@@ -9,7 +9,7 @@ describe('DependencyVulnerability component', () => {
const
factory
=
({
propsData
,
...
options
}
=
{})
=>
{
const
localVue
=
createLocalVue
();
wrapper
=
shallowMount
(
localVue
.
extend
(
DependencyVulnerability
)
,
{
wrapper
=
shallowMount
(
DependencyVulnerability
,
{
...
options
,
localVue
,
sync
:
false
,
...
...
ee/spec/frontend/dependencies/components/paginated_dependencies_table_spec.js
View file @
399ec694
...
...
@@ -16,7 +16,7 @@ describe('PaginatedDependenciesTable component', () => {
store
=
createStore
();
wrapper
=
shallowMount
(
localVue
.
extend
(
PaginatedDependenciesTable
)
,
{
wrapper
=
shallowMount
(
PaginatedDependenciesTable
,
{
localVue
,
store
,
sync
:
false
,
...
...
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