mirror of
https://github.com/inverse-inc/sogo.git
synced 2026-10-06 20:37:14 +00:00
test: migration from Python to JavaScript
This commit is contained in:
1 parent
a14c456800
commit
2b101a87b8
8 files changed
+151
-14
No files matched your search
@@ -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