From f2eb23cd87cf32b8fe545178143b5f49e06a58da Mon Sep 17 00:00:00 2001 From: Rigel Kent Date: Tue, 8 Dec 2020 21:16:10 +0100 Subject: emit more specific status codes on video upload (#3423) - reduce http status codes list to potentially useful codes - convert more codes to typed ones - factorize html generator for error responses --- server/tests/api/check-params/accounts.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'server/tests/api/check-params/accounts.ts') diff --git a/server/tests/api/check-params/accounts.ts b/server/tests/api/check-params/accounts.ts index c29af7cd7..d1712cff6 100644 --- a/server/tests/api/check-params/accounts.ts +++ b/server/tests/api/check-params/accounts.ts @@ -9,6 +9,7 @@ import { checkBadStartPagination } from '../../../../shared/extra-utils/requests/check-api-params' import { getAccount } from '../../../../shared/extra-utils/users/accounts' +import { HttpStatusCode } from '../../../../shared/core-utils/miscs/http-error-codes' describe('Test accounts API validators', function () { const path = '/api/v1/accounts/' @@ -38,7 +39,7 @@ describe('Test accounts API validators', function () { describe('When getting an account', function () { it('Should return 404 with a non existing name', async function () { - await getAccount(server.url, 'arfaze', 404) + await getAccount(server.url, 'arfaze', HttpStatusCode.NOT_FOUND_404) }) }) -- cgit v1.2.3