Files
esg/test/unit/health.spec.ts

11 lines
386 B
TypeScript

import { HealthService } from '../../src/health/health.service';
describe('HealthService', () => {
it('provides safe defaults for memory and disk health checks', () => {
const service = new HealthService();
expect(service.heapThresholdBytes()).toBe(512 * 1024 * 1024);
expect(service.diskThresholdPercent()).toBe(0.9);
expect(service.diskPath()).toBe('/');
});
});