From 92820db3bb4093047740cdab0e0d5ea9b1724638 Mon Sep 17 00:00:00 2001 From: Francis Lachapelle Date: Wed, 10 Nov 2021 06:31:25 -0500 Subject: [PATCH] test: migration from Python to JavaScript --- Tests/spec/CalDAVSchedulingSpec.js | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/Tests/spec/CalDAVSchedulingSpec.js b/Tests/spec/CalDAVSchedulingSpec.js index 34f914cd4..bb1323f4f 100644 --- a/Tests/spec/CalDAVSchedulingSpec.js +++ b/Tests/spec/CalDAVSchedulingSpec.js @@ -3,7 +3,7 @@ import WebDAV from '../lib/WebDAV' import TestUtility from '../lib/utilities' import ICAL from 'ical.js' -describe('create, read, modify, delete tasks for regular user', function() { +describe('CalDAV Scheduling', function() { const webdav = new WebDAV(config.username, config.password) const webdav_su = new WebDAV(config.superuser, config.superuser_password) const webdavAttendee1 = new WebDAV(config.attendee1, config.attendee1_password) @@ -496,7 +496,7 @@ describe('create, read, modify, delete tasks for regular user', function() { .toBe(1) vevent = vevents[0] expect(vevent.getFirstPropertyValue('recurrence-id')) - .withContext('The vEvent of the attendee has a RECURRENCE-ID') + .withContext(`The vEvent of the attendee has a RECURRENCE-ID`) .toBeTruthy() attendees = vevent.getAllProperties('attendee') expect(attendees.length) @@ -637,7 +637,9 @@ describe('create, read, modify, delete tasks for regular user', function() { .withContext('Partstat of attendee is need-actions for the master event') .toBe('NEEDS-ACTION') - expect(veventException).toBeTruthy() + expect(veventException) + .withContext(`The vCalendar of the organizer has a vEvent with a recurrence-id: ${vcalendarOrganizer}`) + .toBeTruthy() attendees = veventException.getAllProperties('attendee') expect(attendees.length) .withContext('Attendees count in the calendar of the exception event')