mirror of
https://github.com/inverse-inc/sogo.git
synced 2026-02-17 07:33:57 +00:00
test: fix CardDAVSpec.js
This commit is contained in:
@@ -2,6 +2,7 @@ import config from '../lib/config'
|
||||
import WebDAV from '../lib/WebDAV'
|
||||
import TestUtility from '../lib/utilities'
|
||||
|
||||
import ICAL from 'ical.js'
|
||||
import {
|
||||
DAVNamespace,
|
||||
DAVNamespaceShorthandMap,
|
||||
@@ -216,6 +217,7 @@ describe('CardDAV extensions', function() {
|
||||
.withContext(`HTTP status code of addressbook-query`)
|
||||
.toEqual(207)
|
||||
|
||||
vcard = ICAL.Component.fromString(response[0].props.addressData.toString())
|
||||
emails = []
|
||||
for (const prop of vcard.getAllProperties('email')) {
|
||||
emails.push(prop.getFirstValue())
|
||||
|
||||
Reference in New Issue
Block a user