diff --git a/tests/javascript/unit/setupStore.js b/tests/javascript/unit/setupStore.js index c5049cb0..249c34d5 100644 --- a/tests/javascript/unit/setupStore.js +++ b/tests/javascript/unit/setupStore.js @@ -107,7 +107,12 @@ END:VCALENDAR` calendarsData.forEach(calendarData => { const calendar = mapDavCollectionToCalendar(calendarData) const tasks = calendarData.tasks.map(taskData => { - return new Task(taskData, calendar) + const task = new Task(taskData, calendar) + const response = { + url: `${calendar.id}/${task.uid}.ics` + } + localVue.set(task, 'dav', response) + return task }) store.commit('addCalendar', calendar) store.commit('appendTasksToCalendar', { calendar, tasks })