diff options
Diffstat (limited to 'server/tests/api/check-params/jobs.ts')
-rw-r--r-- | server/tests/api/check-params/jobs.ts | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/server/tests/api/check-params/jobs.ts b/server/tests/api/check-params/jobs.ts index c70139514..22e237964 100644 --- a/server/tests/api/check-params/jobs.ts +++ b/server/tests/api/check-params/jobs.ts | |||
@@ -51,6 +51,17 @@ describe('Test jobs API validators', function () { | |||
51 | }) | 51 | }) |
52 | }) | 52 | }) |
53 | 53 | ||
54 | it('Should fail with an incorrect job type', async function () { | ||
55 | await makeGetRequest({ | ||
56 | url: server.url, | ||
57 | token: server.accessToken, | ||
58 | path, | ||
59 | query: { | ||
60 | jobType: 'toto' | ||
61 | } | ||
62 | }) | ||
63 | }) | ||
64 | |||
54 | it('Should fail with a bad start pagination', async function () { | 65 | it('Should fail with a bad start pagination', async function () { |
55 | await checkBadStartPagination(server.url, path, server.accessToken) | 66 | await checkBadStartPagination(server.url, path, server.accessToken) |
56 | }) | 67 | }) |
@@ -79,6 +90,7 @@ describe('Test jobs API validators', function () { | |||
79 | statusCodeExpected: 403 | 90 | statusCodeExpected: 403 |
80 | }) | 91 | }) |
81 | }) | 92 | }) |
93 | |||
82 | }) | 94 | }) |
83 | 95 | ||
84 | after(async function () { | 96 | after(async function () { |