closeAllSequelize,
completeVideoCheck,
flushAndRunMultipleServers,
- getJobsListPaginationAndSort,
getVideo,
getVideoCommentThreads,
getVideosList,
const states: JobState[] = [ 'waiting', 'active' ]
for (const state of states) {
- const res = await getJobsListPaginationAndSort({
- url: servers[0].url,
- accessToken: servers[0].accessToken,
+ const body = await servers[0].jobsCommand.getJobsList({
state: state,
start: 0,
count: 50,
sort: '-createdAt'
})
- expect(res.body.data).to.have.length(0)
+ expect(body.data).to.have.length(0)
}
})