test: migration from Python to JavaScript

This commit is contained in:
Francis Lachapelle committed 2021-10-04 13:47:02 -04:00
1 parent a14c456800
commit 2b101a87b8
8 files changed
+151 -14

No files matched your search

+10 -3
View File
@@ -77,9 +77,16 @@ class WebDAV {
})
}
getEvent(resource, filename) {
getObject(resource, filename) {
let url
if (resource.match(/^http/))
url = resource
else
url = this.serverUrl + resource
if (filename)
url += filename
return davRequest({
url: this.serverUrl + resource + filename,
url,
init: {
method: 'GET',
headers: this.headers,
@@ -380,7 +387,7 @@ class WebDAV {
})
}
makeAddressBook(resource) {
makeCollection(resource) {
return makeCollection({
url: this.serverUrl + resource,
headers: this.headers