})
it('Should list jobs with sort and pagination', async function () {
- const res = await getJobsListPaginationAndSort(servers[1].url, servers[1].accessToken, 'completed', 1, 1, 'createdAt')
+ const res = await getJobsListPaginationAndSort(servers[1].url, servers[1].accessToken, 'completed', 1, 2, 'createdAt')
expect(res.body.total).to.be.above(2)
- expect(res.body.data).to.have.lengthOf(1)
+ expect(res.body.data).to.have.lengthOf(2)
let job = res.body.data[0]
// Skip repeat jobs