mirror of
https://github.com/versia-pub/server.git
synced 2025-12-06 16:38:19 +01:00
Remove wrong test
This commit is contained in:
parent
3ccff003f5
commit
ed58b7e67f
|
|
@ -7,9 +7,7 @@ import {
|
|||
} from "~tests/utils";
|
||||
import { config } from "~index";
|
||||
import { meta } from "./index";
|
||||
import type { APIStatus } from "~types/entities/status";
|
||||
import type { APIAccount } from "~types/entities/account";
|
||||
import { getUserUri } from "~database/entities/User";
|
||||
|
||||
await deleteOldTestUsers();
|
||||
|
||||
|
|
@ -39,19 +37,6 @@ beforeAll(async () => {
|
|||
|
||||
// /api/v1/accounts/:id
|
||||
describe(meta.route, () => {
|
||||
test("should return 401 if not authenticated and trying to use following", async () => {
|
||||
const response = await sendTestRequest(
|
||||
new Request(
|
||||
new URL(
|
||||
`${meta.route.replace(":id", users[0].id)}?following=true`,
|
||||
config.http.base_url,
|
||||
),
|
||||
),
|
||||
);
|
||||
|
||||
expect(response.status).toBe(401);
|
||||
});
|
||||
|
||||
test("should return 404 if ID is invalid", async () => {
|
||||
const response = await sendTestRequest(
|
||||
new Request(
|
||||
|
|
|
|||
Loading…
Reference in a new issue