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
63b94f9a
Commit
63b94f9a
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
8 additions
and
18 deletions
+8
-18
ee/spec/frontend/project_licenses/components/license_component_links_spec.js
...oject_licenses/components/license_component_links_spec.js
+2
-6
ee/spec/frontend/project_licenses/components/licenses_table_row_spec.js
...nd/project_licenses/components/licenses_table_row_spec.js
+2
-4
ee/spec/frontend/project_licenses/components/licenses_table_spec.js
...ontend/project_licenses/components/licenses_table_spec.js
+2
-4
ee/spec/frontend/project_licenses/components/paginated_licenses_table_spec.js
...ject_licenses/components/paginated_licenses_table_spec.js
+2
-4
No files found.
ee/spec/frontend/project_licenses/components/license_component_links_spec.js
View file @
63b94f9a
import
{
createLocalVue
,
shallowMount
}
from
'
@vue/test-utils
'
;
import
{
shallowMount
}
from
'
@vue/test-utils
'
;
import
{
GlModal
,
GlLink
,
GlIntersperse
}
from
'
@gitlab/ui
'
;
import
LicenseComponentLinks
,
{
...
...
@@ -6,9 +6,6 @@ import LicenseComponentLinks, {
}
from
'
ee/project_licenses/components/license_component_links.vue
'
;
describe
(
'
LicenseComponentLinks component
'
,
()
=>
{
// local Vue
const
localVue
=
createLocalVue
();
// data helpers
const
createComponents
=
n
=>
[...
Array
(
n
).
keys
()].
map
(
i
=>
({
name
:
`component
${
i
+
1
}
`
}));
const
addUrls
=
(
components
,
numComponentsWithUrls
=
Infinity
)
=>
...
...
@@ -22,8 +19,7 @@ describe('LicenseComponentLinks component', () => {
const
factory
=
({
numComponents
,
numComponentsWithUrl
=
0
,
title
=
'
test-component
'
}
=
{})
=>
{
const
components
=
addUrls
(
createComponents
(
numComponents
),
numComponentsWithUrl
);
wrapper
=
shallowMount
(
localVue
.
extend
(
LicenseComponentLinks
),
{
localVue
,
wrapper
=
shallowMount
(
LicenseComponentLinks
,
{
propsData
:
{
components
,
title
,
...
...
ee/spec/frontend/project_licenses/components/licenses_table_row_spec.js
View file @
63b94f9a
import
{
createLocalVue
,
shallowMount
}
from
'
@vue/test-utils
'
;
import
{
shallowMount
}
from
'
@vue/test-utils
'
;
import
{
GlLink
,
GlSkeletonLoading
}
from
'
@gitlab/ui
'
;
import
LicenseComponentLinks
from
'
ee/project_licenses/components/license_component_links.vue
'
;
import
LicensesTableRow
from
'
ee/project_licenses/components/licenses_table_row.vue
'
;
import
{
makeLicense
}
from
'
./utils
'
;
describe
(
'
LicensesTableRow component
'
,
()
=>
{
const
localVue
=
createLocalVue
();
let
wrapper
;
let
license
;
const
factory
=
(
propsData
=
{})
=>
{
wrapper
=
shallowMount
(
localVue
.
extend
(
LicensesTableRow
),
{
localVue
,
wrapper
=
shallowMount
(
LicensesTableRow
,
{
sync
:
false
,
propsData
,
});
...
...
ee/spec/frontend/project_licenses/components/licenses_table_spec.js
View file @
63b94f9a
import
{
createLocalVue
,
shallowMount
}
from
'
@vue/test-utils
'
;
import
{
shallowMount
}
from
'
@vue/test-utils
'
;
import
LicensesTable
from
'
ee/project_licenses/components/licenses_table.vue
'
;
import
LicensesTableRow
from
'
ee/project_licenses/components/licenses_table_row.vue
'
;
import
{
makeLicense
}
from
'
./utils
'
;
describe
(
'
LicensesTable component
'
,
()
=>
{
const
localVue
=
createLocalVue
();
let
wrapper
;
const
factory
=
(
propsData
=
{})
=>
{
wrapper
=
shallowMount
(
localVue
.
extend
(
LicensesTable
),
{
localVue
,
wrapper
=
shallowMount
(
LicensesTable
,
{
sync
:
false
,
propsData
:
{
...
propsData
},
});
...
...
ee/spec/frontend/project_licenses/components/paginated_licenses_table_spec.js
View file @
63b94f9a
import
{
createLocalVue
,
shallowMount
}
from
'
@vue/test-utils
'
;
import
{
shallowMount
}
from
'
@vue/test-utils
'
;
import
createStore
from
'
ee/project_licenses/store
'
;
import
LicensesTable
from
'
ee/project_licenses/components/licenses_table.vue
'
;
import
{
toLicenseObject
}
from
'
ee/project_licenses/utils/mappers
'
;
...
...
@@ -12,7 +12,6 @@ jest.mock('underscore', () => ({
}));
describe
(
'
PaginatedLicensesTable component
'
,
()
=>
{
const
localVue
=
createLocalVue
();
const
namespace
=
LICENSE_LIST
;
let
store
;
...
...
@@ -21,8 +20,7 @@ describe('PaginatedLicensesTable component', () => {
const
factory
=
()
=>
{
store
=
createStore
();
wrapper
=
shallowMount
(
localVue
.
extend
(
PaginatedLicensesTable
),
{
localVue
,
wrapper
=
shallowMount
(
PaginatedLicensesTable
,
{
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