1
0
Fork 0
mirror of synced 2024-09-17 09:49:11 +12:00

Fixing REST test failure (?).

This commit is contained in:
mike12345567 2024-05-22 16:09:19 +01:00
parent 2ed510dc90
commit e90aa58242

View file

@ -655,6 +655,7 @@ describe("REST Integration", () => {
}), }),
get: (header: any) => { get: (header: any) => {
if (header === "content-type") return contentType if (header === "content-type") return contentType
if (header === "content-length") return responseData.byteLength
if (header === "content-disposition") if (header === "content-disposition")
return `attachment; filename="${filename}"` return `attachment; filename="${filename}"`
}, },
@ -700,6 +701,7 @@ describe("REST Integration", () => {
}), }),
get: (header: any) => { get: (header: any) => {
if (header === "content-type") return contentType if (header === "content-type") return contentType
if (header === "content-length") return responseData.byteLength
if (header === "content-disposition") if (header === "content-disposition")
// eslint-disable-next-line no-useless-escape // eslint-disable-next-line no-useless-escape
return `attachment; filename="£ and ? rates.pdf"; filename*=UTF-8'\'%C2%A3%20and%20%E2%82%AC%20rates.pdf` return `attachment; filename="£ and ? rates.pdf"; filename*=UTF-8'\'%C2%A3%20and%20%E2%82%AC%20rates.pdf`