| 12345678910111213 |
- import request from 'supertest';
- import { app } from '../src/app';
- describe('GET /api/health', () => {
- it('returns service status', async () => {
- const response = await request(app).get('/api/health');
- expect(response.status).toBe(200);
- expect(response.body.status).toBe('ok');
- expect(response.body.service).toBe('servicepilot-api');
- });
- });
|