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
662faab0
Commit
662faab0
authored
Jan 27, 2021
by
Eulyeon Ko
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Use shallow mount to make the spec more scalable
parent
e1c35852
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
14 additions
and
2 deletions
+14
-2
ee/spec/frontend/roadmap/components/roadmap_shell_spec.js
ee/spec/frontend/roadmap/components/roadmap_shell_spec.js
+14
-2
No files found.
ee/spec/frontend/roadmap/components/roadmap_shell_spec.js
View file @
662faab0
import
Vuex
from
'
vuex
'
;
import
{
m
ount
,
createLocalVue
}
from
'
@vue/test-utils
'
;
import
{
shallowM
ount
,
createLocalVue
}
from
'
@vue/test-utils
'
;
import
RoadmapShell
from
'
ee/roadmap/components/roadmap_shell.vue
'
;
import
RoadmapTimelineSection
from
'
ee/roadmap/components/roadmap_timeline_section.vue
'
;
import
MilestonesListSection
from
'
ee/roadmap/components/milestones_list_section.vue
'
;
import
EpicsListSection
from
'
ee/roadmap/components/epics_list_section.vue
'
;
import
MonthsHeaderItem
from
'
ee/roadmap/components/preset_months/months_header_item.vue
'
;
import
MonthsHeaderSubItem
from
'
ee/roadmap/components/preset_months/months_header_sub_item.vue
'
;
import
{
PRESET_TYPES
}
from
'
ee/roadmap/constants
'
;
import
eventHub
from
'
ee/roadmap/event_hub
'
;
import
createStore
from
'
ee/roadmap/store
'
;
...
...
@@ -41,7 +46,7 @@ describe('RoadmapShell', () => {
},
el
,
)
=>
{
wrapper
=
m
ount
(
RoadmapShell
,
{
wrapper
=
shallowM
ount
(
RoadmapShell
,
{
localVue
,
store
,
attachTo
:
el
,
...
...
@@ -53,6 +58,13 @@ describe('RoadmapShell', () => {
currentGroupId
,
hasFiltersApplied
,
},
stubs
:
{
RoadmapTimelineSection
,
MilestonesListSection
,
EpicsListSection
,
MonthsHeaderItem
,
MonthsHeaderSubItem
,
},
});
};
...
...
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