mirror of
https://github.com/inverse-inc/sogo.git
synced 2026-08-22 07:03:19 +00:00
test: migration from Python to JavaScript
This commit is contained in:
@@ -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))
|
||||
|
||||
Reference in New Issue
Block a user