feat(api): add contract-safe jobs read endpoints
This commit is contained in:
@@ -43,6 +43,9 @@ describe('buildControlPlaneApp', () => {
|
||||
expect(response.statusCode).toBe(401);
|
||||
expect(response.headers['content-type']).toContain('application/problem+json');
|
||||
expect(response.json()).toMatchObject({ status: 401, code: 'UNAUTHORIZED' });
|
||||
const jobs = await app.inject({ method: 'GET', url: '/api/v1/jobs' });
|
||||
expect(jobs.statusCode).toBe(200);
|
||||
expect(jobs.json()).toEqual({ items: [], page: { page: 1, pageSize: 25, total: 0 } });
|
||||
await app.close();
|
||||
});
|
||||
|
||||
|
||||
Reference in New Issue
Block a user