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
e10da575
Commit
e10da575
authored
Jan 09, 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
cbe5d88b
Changes
6
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
6 additions
and
21 deletions
+6
-21
ee/spec/frontend/alerts_service_settings/components/alerts_service_form_spec.js
...s_service_settings/components/alerts_service_form_spec.js
+1
-4
ee/spec/frontend/clusters/components/environments_spec.js
ee/spec/frontend/clusters/components/environments_spec.js
+1
-5
ee/spec/frontend/notes/components/note_actions_spec.js
ee/spec/frontend/notes/components/note_actions_spec.js
+1
-4
ee/spec/frontend/operations/components/dashboard/project_header_spec.js
...nd/operations/components/dashboard/project_header_spec.js
+1
-4
ee/spec/frontend/subscriptions/new/components/checkout/progress_bar_spec.js
...ubscriptions/new/components/checkout/progress_bar_spec.js
+1
-3
ee/spec/frontend/subscriptions/new/components/checkout/subscription_details_spec.js
...ions/new/components/checkout/subscription_details_spec.js
+1
-1
No files found.
ee/spec/frontend/alerts_service_settings/components/alerts_service_form_spec.js
View file @
e10da575
import
axios
from
'
axios
'
;
import
MockAdapter
from
'
axios-mock-adapter
'
;
import
{
shallowMount
,
createLocalVue
}
from
'
@vue/test-utils
'
;
import
{
shallowMount
}
from
'
@vue/test-utils
'
;
import
{
GlModal
}
from
'
@gitlab/ui
'
;
import
AlertsServiceForm
from
'
ee/alerts_service_settings/components/alerts_service_form.vue
'
;
import
ToggleButton
from
'
~/vue_shared/components/toggle_button.vue
'
;
...
...
@@ -8,8 +8,6 @@ import createFlash from '~/flash';
jest
.
mock
(
'
~/flash
'
);
const
localVue
=
createLocalVue
();
const
defaultProps
=
{
initialAuthorizationKey
:
'
abcedfg123
'
,
formPath
:
'
http://invalid
'
,
...
...
@@ -24,7 +22,6 @@ describe('AlertsServiceForm', () => {
const
createComponent
=
(
props
=
defaultProps
,
{
methods
}
=
{})
=>
{
wrapper
=
shallowMount
(
AlertsServiceForm
,
{
localVue
,
propsData
:
{
...
defaultProps
,
...
props
,
...
...
ee/spec/frontend/clusters/components/environments_spec.js
View file @
e10da575
import
{
createLocalVue
,
mount
}
from
'
@vue/test-utils
'
;
import
{
mount
}
from
'
@vue/test-utils
'
;
import
Environments
from
'
ee/clusters/components/environments.vue
'
;
import
{
GlTable
,
GlEmptyState
,
GlLoadingIcon
}
from
'
@gitlab/ui
'
;
import
Icon
from
'
~/vue_shared/components/icon.vue
'
;
import
environments
from
'
./mock_data
'
;
const
localVue
=
createLocalVue
();
describe
(
'
Environments
'
,
()
=>
{
let
wrapper
;
let
propsData
;
...
...
@@ -21,7 +19,6 @@ describe('Environments', () => {
wrapper
=
mount
(
Environments
,
{
propsData
,
localVue
,
});
});
...
...
@@ -44,7 +41,6 @@ describe('Environments', () => {
beforeAll
(()
=>
{
wrapper
=
mount
(
Environments
,
{
propsData
:
{
...
propsData
,
environments
},
localVue
,
stubs
:
{
deploymentInstance
:
'
<div class="js-deployment-instance"></div>
'
},
sync
:
false
,
});
...
...
ee/spec/frontend/notes/components/note_actions_spec.js
View file @
e10da575
import
{
shallowMount
,
createLocalVue
}
from
'
@vue/test-utils
'
;
import
{
shallowMount
}
from
'
@vue/test-utils
'
;
import
{
TEST_HOST
}
from
'
spec/test_constants
'
;
import
createStore
from
'
~/notes/stores
'
;
import
noteActions
from
'
~/notes/components/note_actions.vue
'
;
import
{
userDataMock
}
from
'
../../../../spec/frontend/notes/mock_data
'
;
const
localVue
=
createLocalVue
();
describe
(
'
noteActions
'
,
()
=>
{
let
wrapper
;
let
store
;
...
...
@@ -15,7 +13,6 @@ describe('noteActions', () => {
shallowMount
(
noteActions
,
{
store
,
propsData
,
localVue
,
sync
:
false
,
attachToDocument
:
true
,
});
...
...
ee/spec/frontend/operations/components/dashboard/project_header_spec.js
View file @
e10da575
import
{
shallowMount
,
createLocalVue
}
from
'
@vue/test-utils
'
;
import
{
shallowMount
}
from
'
@vue/test-utils
'
;
import
ProjectHeader
from
'
ee/operations/components/dashboard/project_header.vue
'
;
import
{
trimText
}
from
'
helpers/text_helper
'
;
import
ProjectAvatar
from
'
~/vue_shared/components/project_avatar/default.vue
'
;
import
{
mockOneProject
}
from
'
../../mock_data
'
;
const
localVue
=
createLocalVue
();
describe
(
'
project header component
'
,
()
=>
{
let
wrapper
;
...
...
@@ -14,7 +12,6 @@ describe('project header component', () => {
propsData
:
{
project
:
mockOneProject
,
},
localVue
,
sync
:
false
,
attachToDocument
:
true
,
});
...
...
ee/spec/frontend/subscriptions/new/components/checkout/progress_bar_spec.js
View file @
e10da575
import
{
shallowMount
,
createLocalVue
}
from
'
@vue/test-utils
'
;
import
{
shallowMount
}
from
'
@vue/test-utils
'
;
import
component
from
'
ee/subscriptions/new/components/checkout/progress_bar.vue
'
;
describe
(
'
Progress Bar
'
,
()
=>
{
const
localVue
=
createLocalVue
();
let
wrapper
;
const
factory
=
propsData
=>
{
wrapper
=
shallowMount
(
component
,
{
propsData
,
localVue
,
sync
:
false
,
});
};
...
...
ee/spec/frontend/subscriptions/new/components/checkout/subscription_details_spec.js
View file @
e10da575
...
...
@@ -94,7 +94,7 @@ describe('Subscription Details', () => {
store
.
commit
(
types
.
UPDATE_ORGANIZATION_NAME
,
'
My Organization
'
);
store
.
commit
(
types
.
UPDATE_NUMBER_OF_USERS
,
2
);
return
localVue
.
nextTick
().
then
(()
=>
{
return
wrapper
.
vm
.
$
nextTick
().
then
(()
=>
{
expect
(
isStepValid
()).
toBe
(
true
);
});
});
...
...
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