await checkBadSortPagination(server.url, myPath, server.accessToken)
})
+ it('Should fail with a bad videoChannelSyncId param', async function () {
+ await makeGetRequest({
+ url: server.url,
+ path: myPath,
+ query: { videoChannelSyncId: 'toto' },
+ token: server.accessToken
+ })
+ })
+
it('Should success with the correct parameters', async function () {
await makeGetRequest({ url: server.url, path: myPath, expectedStatus: HttpStatusCode.OK_200, token: server.accessToken })
})
it('Should fail with nothing', async function () {
const fields = {}
- await makePostBodyRequest({ url: server.url, path, token: server.accessToken, fields })
+ await makePostBodyRequest({
+ url: server.url,
+ path,
+ token: server.accessToken,
+ fields,
+ expectedStatus: HttpStatusCode.BAD_REQUEST_400
+ })
})
it('Should fail without a target url', async function () {