mirror of
https://github.com/Jermolene/TiddlyWiki5
synced 2025-02-20 04:50:03 +00:00
Fix multipart form data POST test
This commit is contained in:
parent
60e6c8bcb2
commit
808b94468e
@ -120,14 +120,13 @@ const testSpecs = [
|
|||||||
accept: "*/*"
|
accept: "*/*"
|
||||||
},
|
},
|
||||||
expectedResult: (jsonData,data,headers) => {
|
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\\\" ";
|
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",
|
description: "Upload a 1px PNG",
|
||||||
method: "POST",
|
method: "POST",
|
||||||
path: "/wiki/bag-alpha/bags/bag-alpha/tiddlers/",
|
path: "/bags/bag-alpha/tiddlers/",
|
||||||
headers: {
|
headers: {
|
||||||
"Accept": 'application/json',
|
"Accept": 'application/json',
|
||||||
"Content-Type": 'multipart/form-data; boundary=----WebKitFormBoundaryVR9zv0PFmx9YtpLL',
|
"Content-Type": 'multipart/form-data; boundary=----WebKitFormBoundaryVR9zv0PFmx9YtpLL',
|
||||||
|
Loading…
x
Reference in New Issue
Block a user