'Epics|These dates affect how your epics appear in the roadmap. Dates from milestones come from the milestones assigned to issues in the epic. You can also set fixed dates or remove them entirely.',
it('returns `None` when `dateFromMilestones` is not defined',()=>{
expect(vm.dateFromMilestonesWords).toBe('None');
});
});
describe('collapsedText',()=>{
it('returns value of `selectedDateWords` when it is defined',done=>{
vm.selectedDate=newDate(2018,0,1);
Vue.nextTick()
.then(()=>{
expect(vm.collapsedText).toBe('Jan 1, 2018');
})
.then(done)
.catch(done.fail);
});
it('returns `None` when `selectedDateWords` is not defined',()=>{
expect(vm.collapsedText).toBe('None');
});
});
describe('popoverOptions',()=>{
it('returns popover config object containing title with appropriate string',()=>{
expect(vm.popoverOptions.title).toBe(
'These dates affect how your epics appear in the roadmap. Dates from milestones come from the milestones assigned to issues in the epic. You can also set fixed dates or remove them entirely.',
);
});
it('returns popover config object containing `content` with href pointing to correct documentation',()=>{