aboutsummaryrefslogtreecommitdiffhomepage
path: root/server/tests/api/check-params/jobs.ts
diff options
context:
space:
mode:
Diffstat (limited to 'server/tests/api/check-params/jobs.ts')
-rw-r--r--server/tests/api/check-params/jobs.ts5
1 files changed, 3 insertions, 2 deletions
diff --git a/server/tests/api/check-params/jobs.ts b/server/tests/api/check-params/jobs.ts
index 8f4af8d16..3c1d2049b 100644
--- a/server/tests/api/check-params/jobs.ts
+++ b/server/tests/api/check-params/jobs.ts
@@ -16,6 +16,7 @@ import {
16 checkBadStartPagination 16 checkBadStartPagination
17} from '../../../../shared/extra-utils/requests/check-api-params' 17} from '../../../../shared/extra-utils/requests/check-api-params'
18import { makeGetRequest } from '../../../../shared/extra-utils/requests/requests' 18import { makeGetRequest } from '../../../../shared/extra-utils/requests/requests'
19import { HttpStatusCode } from '../../../../shared/core-utils/miscs/http-error-codes'
19 20
20describe('Test jobs API validators', function () { 21describe('Test jobs API validators', function () {
21 const path = '/api/v1/jobs/failed' 22 const path = '/api/v1/jobs/failed'
@@ -76,7 +77,7 @@ describe('Test jobs API validators', function () {
76 await makeGetRequest({ 77 await makeGetRequest({
77 url: server.url, 78 url: server.url,
78 path, 79 path,
79 statusCodeExpected: 401 80 statusCodeExpected: HttpStatusCode.UNAUTHORIZED_401
80 }) 81 })
81 }) 82 })
82 83
@@ -85,7 +86,7 @@ describe('Test jobs API validators', function () {
85 url: server.url, 86 url: server.url,
86 path, 87 path,
87 token: userAccessToken, 88 token: userAccessToken,
88 statusCodeExpected: 403 89 statusCodeExpected: HttpStatusCode.FORBIDDEN_403
89 }) 90 })
90 }) 91 })
91 92