From edbc9325462ddf4536775871ebc25e06f46612d1 Mon Sep 17 00:00:00 2001 From: Chocobozzz Date: Fri, 24 Jul 2020 15:05:51 +0200 Subject: Add server API to abuse messages --- server/tests/api/users/users.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'server/tests/api/users/users.ts') diff --git a/server/tests/api/users/users.ts b/server/tests/api/users/users.ts index ea74bde6a..edb0b4bb3 100644 --- a/server/tests/api/users/users.ts +++ b/server/tests/api/users/users.ts @@ -11,8 +11,8 @@ import { createUser, deleteMe, flushAndRunServer, - getAbusesList, getAccountRatings, + getAdminAbusesList, getBlacklistedVideosList, getCustomConfig, getMyUserInformation, @@ -928,7 +928,7 @@ describe('Test users', function () { const reason = 'my super bad reason' await reportAbuse({ url: server.url, token: user17AccessToken, videoId, reason }) - const res1 = await getAbusesList({ url: server.url, token: server.accessToken }) + const res1 = await getAdminAbusesList({ url: server.url, token: server.accessToken }) const abuseId = res1.body.data[0].id const res2 = await getUserInformation(server.url, server.accessToken, user17Id, true) -- cgit v1.2.3