mirror of
https://github.com/versia-pub/server.git
synced 2025-12-08 09:18:19 +01:00
Remove wrong test
This commit is contained in:
parent
3ccff003f5
commit
ed58b7e67f
|
|
@ -7,9 +7,7 @@ import {
|
||||||
} from "~tests/utils";
|
} from "~tests/utils";
|
||||||
import { config } from "~index";
|
import { config } from "~index";
|
||||||
import { meta } from "./index";
|
import { meta } from "./index";
|
||||||
import type { APIStatus } from "~types/entities/status";
|
|
||||||
import type { APIAccount } from "~types/entities/account";
|
import type { APIAccount } from "~types/entities/account";
|
||||||
import { getUserUri } from "~database/entities/User";
|
|
||||||
|
|
||||||
await deleteOldTestUsers();
|
await deleteOldTestUsers();
|
||||||
|
|
||||||
|
|
@ -39,19 +37,6 @@ beforeAll(async () => {
|
||||||
|
|
||||||
// /api/v1/accounts/:id
|
// /api/v1/accounts/:id
|
||||||
describe(meta.route, () => {
|
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 () => {
|
test("should return 404 if ID is invalid", async () => {
|
||||||
const response = await sendTestRequest(
|
const response = await sendTestRequest(
|
||||||
new Request(
|
new Request(
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue