test: migration from Python to JavaScript

This commit is contained in:
Francis Lachapelle
2021-10-04 13:47:02 -04:00
parent a14c456800
commit 2b101a87b8
8 changed files with 151 additions and 14 deletions
+1 -1
View File
@@ -16,7 +16,7 @@ let icsName, icsList, vcalendar
describe('PreventInvitationsWhitelist user setting', function() {
const _getEvent = async function(client, calendarName, filename, expectedCode = 200) {
const [{ status, headers, raw }] = await client.getEvent(calendarName, filename)
const [{ status, headers, raw }] = await client.getObject(calendarName, filename)
expect(status).toBe(expectedCode)
if (status <= 300)
return new ICAL.Component(ICAL.parse(raw))