import { DyNTS_EventLoopDiag, DyNTS_EventLoopSample } from './event-loop-diag.service'; // Az event-loop-diag (BFR-OVERSEER-007) alap-tesztjei: snapshot-shape + install-idempotencia. // A tényleges lag-értékeket nem asszertáljuk (env-függő) — a mérő-plumbing működését igen. describe('| DyNTS_EventLoopDiag', (): void => { it('| getSnapshot install előtt is biztonságos (üres kép)', (): void => { const snapshot: { installed: boolean; current: DyNTS_EventLoopSample | null; history: DyNTS_EventLoopSample[] } = DyNTS_EventLoopDiag.getInstance().getSnapshot(); expect(Array.isArray(snapshot.history)).toBeTrue(); }); it('| install idempotens és a snapshot installed-et jelez', (): void => { const diag: DyNTS_EventLoopDiag = DyNTS_EventLoopDiag.getInstance(); diag.install(); diag.install(); expect(diag.getSnapshot().installed).toBeTrue(); }); });