1 import * as request from 'supertest'
3 function getJobsList (url: string, accessToken: string) {
4 const path = '/api/v1/jobs'
8 .set('Accept', 'application/json')
9 .set('Authorization', 'Bearer ' + accessToken)
11 .expect('Content-Type', /json/)
14 function getJobsListPaginationAndSort (url: string, accessToken: string, start: number, count: number, sort: string) {
15 const path = '/api/v1/jobs'
22 .set('Accept', 'application/json')
23 .set('Authorization', 'Bearer ' + accessToken)
25 .expect('Content-Type', /json/)
28 // ---------------------------------------------------------------------------
32 getJobsListPaginationAndSort