From ed58b7e67f841a328180f37fc47f3ca798674d2c Mon Sep 17 00:00:00 2001 From: Jesse Wierzbinski Date: Thu, 11 Apr 2024 13:13:46 -1000 Subject: [PATCH] Remove wrong test --- server/api/api/v1/accounts/[id]/index.test.ts | 15 --------------- 1 file changed, 15 deletions(-) diff --git a/server/api/api/v1/accounts/[id]/index.test.ts b/server/api/api/v1/accounts/[id]/index.test.ts index 9b5ad8fe..c88fe3cc 100644 --- a/server/api/api/v1/accounts/[id]/index.test.ts +++ b/server/api/api/v1/accounts/[id]/index.test.ts @@ -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(