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
7ff48a38
Commit
7ff48a38
authored
Nov 15, 2019
by
Enrique Alcantara
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Prepare vue_shared specs for bv upgrade
- Set attachDocument as true - Set sync as false
parent
ad6f7e24
Changes
9
Hide whitespace changes
Inline
Side-by-side
Showing
9 changed files
with
19 additions
and
10 deletions
+19
-10
spec/frontend/vue_shared/components/changed_file_icon_spec.js
.../frontend/vue_shared/components/changed_file_icon_spec.js
+1
-0
spec/frontend/vue_shared/components/commit_spec.js
spec/frontend/vue_shared/components/commit_spec.js
+1
-0
spec/frontend/vue_shared/components/issue/issue_assignees_spec.js
...ntend/vue_shared/components/issue/issue_assignees_spec.js
+1
-0
spec/frontend/vue_shared/components/issue/issue_milestone_spec.js
...ntend/vue_shared/components/issue/issue_milestone_spec.js
+5
-3
spec/frontend/vue_shared/components/issue/related_issuable_item_spec.js
...vue_shared/components/issue/related_issuable_item_spec.js
+1
-0
spec/frontend/vue_shared/components/markdown/suggestion_diff_header_spec.js
...shared/components/markdown/suggestion_diff_header_spec.js
+1
-0
spec/frontend/vue_shared/components/modal_copy_button_spec.js
.../frontend/vue_shared/components/modal_copy_button_spec.js
+2
-0
spec/frontend/vue_shared/components/paginated_list_spec.js
spec/frontend/vue_shared/components/paginated_list_spec.js
+2
-0
spec/frontend/vue_shared/components/sidebar/labels_select/base_spec.js
.../vue_shared/components/sidebar/labels_select/base_spec.js
+5
-7
No files found.
spec/frontend/vue_shared/components/changed_file_icon_spec.js
View file @
7ff48a38
...
...
@@ -19,6 +19,7 @@ describe('Changed file icon', () => {
...
props
,
},
sync
:
false
,
attachToDocument
:
true
,
});
};
...
...
spec/frontend/vue_shared/components/commit_spec.js
View file @
7ff48a38
...
...
@@ -13,6 +13,7 @@ describe('Commit component', () => {
wrapper
=
shallowMount
(
CommitComponent
,
{
propsData
,
sync
:
false
,
attachToDocument
:
true
,
});
};
...
...
spec/frontend/vue_shared/components/issue/issue_assignees_spec.js
View file @
7ff48a38
...
...
@@ -18,6 +18,7 @@ describe('IssueAssigneesComponent', () => {
...
props
,
},
sync
:
false
,
attachToDocument
:
true
,
});
vm
=
wrapper
.
vm
;
// eslint-disable-line
};
...
...
spec/frontend/vue_shared/components/issue/issue_milestone_spec.js
View file @
7ff48a38
import
Vue
from
'
vue
'
;
import
{
m
ount
}
from
'
@vue/test-utils
'
;
import
{
shallowM
ount
}
from
'
@vue/test-utils
'
;
import
IssueMilestone
from
'
~/vue_shared/components/issue/issue_milestone.vue
'
;
import
Icon
from
'
~/vue_shared/components/icon.vue
'
;
import
{
mockMilestone
}
from
'
../../../../javascripts/boards/mock_data
'
;
const
createComponent
=
(
milestone
=
mockMilestone
)
=>
{
const
Component
=
Vue
.
extend
(
IssueMilestone
);
return
m
ount
(
Component
,
{
return
shallowM
ount
(
Component
,
{
propsData
:
{
milestone
,
},
sync
:
false
,
attachToDocument
:
true
,
});
};
...
...
@@ -156,7 +158,7 @@ describe('IssueMilestoneComponent', () => {
});
it
(
'
renders milestone icon
'
,
()
=>
{
expect
(
vm
.
$el
.
querySelector
(
'
svg use
'
).
getAttribute
(
'
xlink:href
'
)).
toContain
(
'
clock
'
);
expect
(
wrapper
.
find
(
Icon
).
props
(
'
name
'
)).
toBe
(
'
clock
'
);
});
it
(
'
renders milestone title
'
,
()
=>
{
...
...
spec/frontend/vue_shared/components/issue/related_issuable_item_spec.js
View file @
7ff48a38
...
...
@@ -35,6 +35,7 @@ describe('RelatedIssuableItem', () => {
localVue
,
slots
,
sync
:
false
,
attachToDocument
:
true
,
propsData
:
props
,
});
});
...
...
spec/frontend/vue_shared/components/markdown/suggestion_diff_header_spec.js
View file @
7ff48a38
...
...
@@ -21,6 +21,7 @@ describe('Suggestion Diff component', () => {
},
localVue
,
sync
:
false
,
attachToDocument
:
true
,
});
};
...
...
spec/frontend/vue_shared/components/modal_copy_button_spec.js
View file @
7ff48a38
...
...
@@ -16,6 +16,8 @@ describe('modal copy button', () => {
text
:
'
copy me
'
,
title
:
'
Copy this value
'
,
},
attachToDocument
:
true
,
sync
:
false
,
});
});
...
...
spec/frontend/vue_shared/components/paginated_list_spec.js
View file @
7ff48a38
...
...
@@ -26,6 +26,8 @@ describe('Pagination links component', () => {
list
:
[{
id
:
'
foo
'
},
{
id
:
'
bar
'
}],
props
,
},
attachToDocument
:
true
,
sync
:
false
,
});
[
glPaginatedList
]
=
wrapper
.
vm
.
$children
;
...
...
spec/frontend/vue_shared/components/sidebar/labels_select/base_spec.js
View file @
7ff48a38
import
Vue
from
'
vue
'
;
import
LabelsSelect
from
'
~/labels_select
'
;
import
b
aseComponent
from
'
~/vue_shared/components/sidebar/labels_select/base.vue
'
;
import
B
aseComponent
from
'
~/vue_shared/components/sidebar/labels_select/base.vue
'
;
import
{
m
ount
}
from
'
@vue/test-utils
'
;
import
{
shallowM
ount
}
from
'
@vue/test-utils
'
;
import
{
mockConfig
,
mockLabels
,
}
from
'
../../../../../javascripts/vue_shared/components/sidebar/labels_select/mock_data
'
;
const
createComponent
=
(
config
=
mockConfig
)
=>
{
const
Component
=
Vue
.
extend
(
baseComponent
);
return
mount
(
Component
,
{
const
createComponent
=
(
config
=
mockConfig
)
=>
shallowMount
(
BaseComponent
,
{
propsData
:
config
,
sync
:
false
,
attachToDocument
:
true
,
});
};
describe
(
'
BaseComponent
'
,
()
=>
{
let
wrapper
;
...
...
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