1
0
mirror of https://github.com/Jermolene/TiddlyWiki5 synced 2024-11-30 05:19:57 +00:00

Fix multipart form data POST test

This commit is contained in:
Jeremy Ruston 2024-03-20 18:52:37 +00:00
parent 60e6c8bcb2
commit 808b94468e

View File

@ -120,14 +120,13 @@ const testSpecs = [
accept: "*/*"
},
expectedResult: (jsonData,data,headers) => {
console.log(JSON.stringify(data).slice(1,100))
return JSON.stringify(data).slice(1,100) === "\\n<!doctype html>\\n<head>\\n\\t<meta http-equiv=\\\"Content-Type\\\" content=\\\"text/html;charset=utf-8\\\" ";
}
},
{
description: "Upload a 1px PNG",
method: "POST",
path: "/wiki/bag-alpha/bags/bag-alpha/tiddlers/",
path: "/bags/bag-alpha/tiddlers/",
headers: {
"Accept": 'application/json',
"Content-Type": 'multipart/form-data; boundary=----WebKitFormBoundaryVR9zv0PFmx9YtpLL',