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
3f777709
Commit
3f777709
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
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
4 additions
and
10 deletions
+4
-10
spec/frontend/diffs/components/diff_gutter_avatars_spec.js
spec/frontend/diffs/components/diff_gutter_avatars_spec.js
+1
-3
spec/frontend/diffs/components/edit_button_spec.js
spec/frontend/diffs/components/edit_button_spec.js
+1
-3
spec/frontend/diffs/components/hidden_files_warning_spec.js
spec/frontend/diffs/components/hidden_files_warning_spec.js
+1
-3
spec/frontend/diffs/components/no_changes_spec.js
spec/frontend/diffs/components/no_changes_spec.js
+1
-1
No files found.
spec/frontend/diffs/components/diff_gutter_avatars_spec.js
View file @
3f777709
import
{
shallowMount
,
createLocalVue
}
from
'
@vue/test-utils
'
;
import
{
shallowMount
}
from
'
@vue/test-utils
'
;
import
DiffGutterAvatars
from
'
~/diffs/components/diff_gutter_avatars.vue
'
;
import
discussionsMockData
from
'
../mock_data/diff_discussions
'
;
const
localVue
=
createLocalVue
();
const
getDiscussionsMockData
=
()
=>
[
Object
.
assign
({},
discussionsMockData
)];
describe
(
'
DiffGutterAvatars
'
,
()
=>
{
...
...
@@ -14,7 +13,6 @@ describe('DiffGutterAvatars', () => {
const
createComponent
=
(
props
=
{})
=>
{
wrapper
=
shallowMount
(
DiffGutterAvatars
,
{
localVue
,
propsData
:
{
...
props
,
},
...
...
spec/frontend/diffs/components/edit_button_spec.js
View file @
3f777709
import
{
shallowMount
,
createLocalVue
}
from
'
@vue/test-utils
'
;
import
{
shallowMount
}
from
'
@vue/test-utils
'
;
import
EditButton
from
'
~/diffs/components/edit_button.vue
'
;
const
localVue
=
createLocalVue
();
const
editPath
=
'
test-path
'
;
describe
(
'
EditButton
'
,
()
=>
{
...
...
@@ -9,7 +8,6 @@ describe('EditButton', () => {
const
createComponent
=
(
props
=
{})
=>
{
wrapper
=
shallowMount
(
EditButton
,
{
localVue
,
propsData
:
{
...
props
},
sync
:
false
,
attachToDocument
:
true
,
...
...
spec/frontend/diffs/components/hidden_files_warning_spec.js
View file @
3f777709
import
{
shallowMount
,
createLocalVue
}
from
'
@vue/test-utils
'
;
import
{
shallowMount
}
from
'
@vue/test-utils
'
;
import
HiddenFilesWarning
from
'
~/diffs/components/hidden_files_warning.vue
'
;
const
localVue
=
createLocalVue
();
const
propsData
=
{
total
:
'
10
'
,
visible
:
5
,
...
...
@@ -14,7 +13,6 @@ describe('HiddenFilesWarning', () => {
const
createComponent
=
()
=>
{
wrapper
=
shallowMount
(
HiddenFilesWarning
,
{
localVue
,
sync
:
false
,
propsData
,
});
...
...
spec/frontend/diffs/components/no_changes_spec.js
View file @
3f777709
...
...
@@ -13,7 +13,7 @@ describe('Diff no changes empty state', () => {
const
store
=
createStore
();
extendStore
(
store
);
vm
=
shallowMount
(
localVue
.
extend
(
NoChanges
)
,
{
vm
=
shallowMount
(
NoChanges
,
{
localVue
,
store
,
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