import { describe, expect, it } from 'vitest'; import { healthResponse } from './health'; describe('healthResponse', () => { it('reports ok with service, version, and a valid timestamp', () => { const res = healthResponse('api', '1.2.3'); expect(res.status).toBe('ok'); expect(res.service).toBe('api'); expect(res.version).toBe('1.2.3'); expect(Number.isNaN(Date.parse(res.time))).toBe(false); }); });