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
57a9f363
Commit
57a9f363
authored
Jun 07, 2018
by
Kushal Pandya
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Update to use presetType
parent
e0fe0013
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
3 deletions
+7
-3
spec/javascripts/roadmap/mixins/section_mixin_spec.js
spec/javascripts/roadmap/mixins/section_mixin_spec.js
+7
-3
No files found.
spec/javascripts/roadmap/mixins/section_mixin_spec.js
View file @
57a9f363
...
...
@@ -2,18 +2,22 @@ import Vue from 'vue';
import
roadmapTimelineSectionComponent
from
'
ee/roadmap/components/roadmap_timeline_section.vue
'
;
import
{
PRESET_TYPES
}
from
'
ee/roadmap/constants
'
;
import
mountComponent
from
'
spec/helpers/vue_mount_component_helper
'
;
import
{
mockEpic
,
mockTimeframe
,
mockShellWidth
,
mockScrollBarSize
}
from
'
../mock_data
'
;
import
{
mockEpic
,
mockTimeframe
Months
,
mockShellWidth
,
mockScrollBarSize
}
from
'
../mock_data
'
;
const
createComponent
=
({
presetType
=
PRESET_TYPES
.
MONTHS
,
epics
=
[
mockEpic
],
timeframe
=
mockTimeframe
,
timeframe
=
mockTimeframe
Months
,
shellWidth
=
mockShellWidth
,
listScrollable
=
false
,
})
=>
{
const
Component
=
Vue
.
extend
(
roadmapTimelineSectionComponent
);
return
mountComponent
(
Component
,
{
presetType
,
epics
,
timeframe
,
shellWidth
,
...
...
@@ -47,7 +51,7 @@ describe('SectionMixin', () => {
describe
(
'
sectionItemWidth
'
,
()
=>
{
it
(
'
returns calculated item width based on sectionShellWidth and timeframe size
'
,
()
=>
{
expect
(
vm
.
sectionItemWidth
).
toBe
(
2
8
0
);
expect
(
vm
.
sectionItemWidth
).
toBe
(
2
4
0
);
});
});
...
...
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