+ it('Should list all jobs', async function () {
+ const res = await getJobsList(servers[1].url, servers[1].accessToken)
+
+ const jobs = res.body.data as Job[]
+
+ expect(res.body.total).to.be.above(2)
+ expect(jobs).to.have.length.above(2)
+
+ // We know there are a least 1 delayed job (video views) and 1 completed job (broadcast)
+ expect(jobs.find(j => j.state === 'delayed')).to.not.be.undefined
+ expect(jobs.find(j => j.state === 'completed')).to.not.be.undefined
+ })
+