From 5cd822fde4aec09a1888ee9af5131e4256a923ee Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Raimund=20Schl=C3=BC=C3=9Fler?= Date: Wed, 30 Oct 2019 20:12:12 +0100 Subject: [PATCH] =?UTF-8?q?Set=20dav=20on=20mocked=20tasks=20so=20we=20get?= =?UTF-8?q?=20an=20uri=20Signed-off-by:=20Raimund=20Schl=C3=BC=C3=9Fler=20?= =?UTF-8?q??= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- tests/javascript/unit/setupStore.js | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) 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 })