mirror of
https://github.com/versia-pub/server.git
synced 2026-01-26 04:06:01 +01:00
fix(api): ✅ Fix a test sending a body with a GET request
This commit is contained in:
parent
6c3fcf699e
commit
6b83336fa3
|
|
@ -17,9 +17,9 @@ describe("API Tests", () => {
|
||||||
|
|
||||||
const response = await sendTestRequest(
|
const response = await sendTestRequest(
|
||||||
new Request(
|
new Request(
|
||||||
wrapRelativeUrl(`${base_url}/api/v1/custom_emojis`, base_url),
|
wrapRelativeUrl(`${base_url}/api/v1/statuses`, base_url),
|
||||||
{
|
{
|
||||||
method: "GET",
|
method: "POST",
|
||||||
headers: {
|
headers: {
|
||||||
Authorization: `Bearer ${tokens[0].accessToken}`,
|
Authorization: `Bearer ${tokens[0].accessToken}`,
|
||||||
"Content-Type": "multipart/form-data",
|
"Content-Type": "multipart/form-data",
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue