Fix OAuth tests failing

This commit is contained in:
Jesse Wierzbinski 2023-10-22 14:38:33 -10:00
parent ec0544c5ba
commit ace9f97275
No known key found for this signature in database
GPG key ID: F9A1E418934E40B0

View file

@ -102,9 +102,7 @@ describe("POST /oauth/token/", () => {
// @ts-expect-error FormData works // @ts-expect-error FormData works
const response = await fetch(`${config.http.base_url}/oauth/token/`, { const response = await fetch(`${config.http.base_url}/oauth/token/`, {
method: "POST", method: "POST",
headers: { // Do not set the Content-Type header for some reason
"Content-Type": "multipart/form-data",
},
body: formData, body: formData,
}); });