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
76870d67
Commit
76870d67
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
8
Hide whitespace changes
Inline
Side-by-side
Showing
8 changed files
with
15 additions
and
33 deletions
+15
-33
spec/frontend/vue_mr_widget/components/artifacts_list_app_spec.js
...ntend/vue_mr_widget/components/artifacts_list_app_spec.js
+1
-1
spec/frontend/vue_mr_widget/components/artifacts_list_spec.js
.../frontend/vue_mr_widget/components/artifacts_list_spec.js
+2
-4
spec/frontend/vue_mr_widget/components/mr_widget_container_spec.js
...tend/vue_mr_widget/components/mr_widget_container_spec.js
+2
-5
spec/frontend/vue_mr_widget/components/mr_widget_icon_spec.js
.../frontend/vue_mr_widget/components/mr_widget_icon_spec.js
+2
-5
spec/frontend/vue_mr_widget/components/states/commit_edit_spec.js
...ntend/vue_mr_widget/components/states/commit_edit_spec.js
+2
-4
spec/frontend/vue_mr_widget/components/states/mr_widget_commit_message_dropdown_spec.js
...mponents/states/mr_widget_commit_message_dropdown_spec.js
+2
-4
spec/frontend/vue_mr_widget/components/states/mr_widget_commits_header_spec.js
...widget/components/states/mr_widget_commits_header_spec.js
+2
-5
spec/frontend/vue_mr_widget/deployment/deployment_view_button_spec.js
...d/vue_mr_widget/deployment/deployment_view_button_spec.js
+2
-5
No files found.
spec/frontend/vue_mr_widget/components/artifacts_list_app_spec.js
View file @
76870d67
...
...
@@ -29,7 +29,7 @@ describe('Merge Requests Artifacts list app', () => {
});
const
createComponent
=
()
=>
{
wrapper
=
mount
(
localVue
.
extend
(
ArtifactsListApp
)
,
{
wrapper
=
mount
(
ArtifactsListApp
,
{
propsData
:
{
endpoint
:
TEST_HOST
,
},
...
...
spec/frontend/vue_mr_widget/components/artifacts_list_spec.js
View file @
76870d67
import
{
shallowMount
,
createLocalVue
}
from
'
@vue/test-utils
'
;
import
{
shallowMount
}
from
'
@vue/test-utils
'
;
import
{
GlLink
}
from
'
@gitlab/ui
'
;
import
ArtifactsList
from
'
~/vue_merge_request_widget/components/artifacts_list.vue
'
;
import
{
artifactsList
}
from
'
./mock_data
'
;
describe
(
'
Artifacts List
'
,
()
=>
{
let
wrapper
;
const
localVue
=
createLocalVue
();
const
data
=
{
artifacts
:
artifactsList
,
};
const
mountComponent
=
props
=>
{
wrapper
=
shallowMount
(
localVue
.
extend
(
ArtifactsList
)
,
{
wrapper
=
shallowMount
(
ArtifactsList
,
{
propsData
:
{
...
props
,
},
sync
:
false
,
localVue
,
});
};
...
...
spec/frontend/vue_mr_widget/components/mr_widget_container_spec.js
View file @
76870d67
import
{
shallowMount
,
createLocalVue
}
from
'
@vue/test-utils
'
;
import
{
shallowMount
}
from
'
@vue/test-utils
'
;
import
MrWidgetContainer
from
'
~/vue_merge_request_widget/components/mr_widget_container.vue
'
;
const
BODY_HTML
=
'
<div class="test-body">Hello World</div>
'
;
...
...
@@ -8,10 +8,7 @@ describe('MrWidgetContainer', () => {
let
wrapper
;
const
factory
=
(
options
=
{})
=>
{
const
localVue
=
createLocalVue
();
wrapper
=
shallowMount
(
localVue
.
extend
(
MrWidgetContainer
),
{
localVue
,
wrapper
=
shallowMount
(
MrWidgetContainer
,
{
...
options
,
});
};
...
...
spec/frontend/vue_mr_widget/components/mr_widget_icon_spec.js
View file @
76870d67
import
{
shallowMount
,
createLocalVue
}
from
'
@vue/test-utils
'
;
import
{
shallowMount
}
from
'
@vue/test-utils
'
;
import
MrWidgetIcon
from
'
~/vue_merge_request_widget/components/mr_widget_icon.vue
'
;
import
Icon
from
'
~/vue_shared/components/icon.vue
'
;
...
...
@@ -8,14 +8,11 @@ describe('MrWidgetIcon', () => {
let
wrapper
;
beforeEach
(()
=>
{
const
localVue
=
createLocalVue
();
wrapper
=
shallowMount
(
localVue
.
extend
(
MrWidgetIcon
),
{
wrapper
=
shallowMount
(
MrWidgetIcon
,
{
propsData
:
{
name
:
TEST_ICON
,
},
sync
:
false
,
localVue
,
});
});
...
...
spec/frontend/vue_mr_widget/components/states/commit_edit_spec.js
View file @
76870d67
import
{
createLocalVue
,
shallowMount
}
from
'
@vue/test-utils
'
;
import
{
shallowMount
}
from
'
@vue/test-utils
'
;
import
CommitEdit
from
'
~/vue_merge_request_widget/components/states/commit_edit.vue
'
;
const
localVue
=
createLocalVue
();
const
testCommitMessage
=
'
Test commit message
'
;
const
testLabel
=
'
Test label
'
;
const
testInputId
=
'
test-input-id
'
;
...
...
@@ -10,8 +9,7 @@ describe('Commits edit component', () => {
let
wrapper
;
const
createComponent
=
(
slots
=
{})
=>
{
wrapper
=
shallowMount
(
localVue
.
extend
(
CommitEdit
),
{
localVue
,
wrapper
=
shallowMount
(
CommitEdit
,
{
sync
:
false
,
propsData
:
{
value
:
testCommitMessage
,
...
...
spec/frontend/vue_mr_widget/components/states/mr_widget_commit_message_dropdown_spec.js
View file @
76870d67
import
{
createLocalVue
,
shallowMount
}
from
'
@vue/test-utils
'
;
import
{
shallowMount
}
from
'
@vue/test-utils
'
;
import
{
GlDropdownItem
}
from
'
@gitlab/ui
'
;
import
CommitMessageDropdown
from
'
~/vue_merge_request_widget/components/states/commit_message_dropdown.vue
'
;
const
localVue
=
createLocalVue
();
const
commits
=
[
{
title
:
'
Commit 1
'
,
...
...
@@ -25,8 +24,7 @@ describe('Commits message dropdown component', () => {
let
wrapper
;
const
createComponent
=
()
=>
{
wrapper
=
shallowMount
(
localVue
.
extend
(
CommitMessageDropdown
),
{
localVue
,
wrapper
=
shallowMount
(
CommitMessageDropdown
,
{
sync
:
false
,
propsData
:
{
commits
,
...
...
spec/frontend/vue_mr_widget/components/states/mr_widget_commits_header_spec.js
View file @
76870d67
import
{
createLocalVue
,
shallowMount
}
from
'
@vue/test-utils
'
;
import
{
shallowMount
}
from
'
@vue/test-utils
'
;
import
CommitsHeader
from
'
~/vue_merge_request_widget/components/states/commits_header.vue
'
;
import
Icon
from
'
~/vue_shared/components/icon.vue
'
;
const
localVue
=
createLocalVue
();
describe
(
'
Commits header component
'
,
()
=>
{
let
wrapper
;
const
createComponent
=
props
=>
{
wrapper
=
shallowMount
(
localVue
.
extend
(
CommitsHeader
),
{
localVue
,
wrapper
=
shallowMount
(
CommitsHeader
,
{
sync
:
false
,
propsData
:
{
isSquashEnabled
:
false
,
...
...
spec/frontend/vue_mr_widget/deployment/deployment_view_button_spec.js
View file @
76870d67
import
{
mount
,
createLocalVue
}
from
'
@vue/test-utils
'
;
import
{
mount
}
from
'
@vue/test-utils
'
;
import
DeploymentViewButton
from
'
~/vue_merge_request_widget/components/deployment/deployment_view_button.vue
'
;
import
ReviewAppLink
from
'
~/vue_merge_request_widget/components/review_app_link.vue
'
;
import
deploymentMockData
from
'
./deployment_mock_data
'
;
...
...
@@ -7,10 +7,7 @@ describe('Deployment View App button', () => {
let
wrapper
;
const
factory
=
(
options
=
{})
=>
{
const
localVue
=
createLocalVue
();
wrapper
=
mount
(
localVue
.
extend
(
DeploymentViewButton
),
{
localVue
,
wrapper
=
mount
(
DeploymentViewButton
,
{
...
options
,
});
};
...
...
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