From e3e694f9ff00a50a9b321de3dad840cb46fe1e76 Mon Sep 17 00:00:00 2001 From: Folist Date: Sat, 15 Aug 2026 11:32:07 +0300 Subject: [PATCH] =?UTF-8?q?=D0=A2=D0=B5=D1=81=D1=82=20=D0=B7=D0=BE=D0=BD?= =?UTF-8?q?=D0=B4=D0=B0:=20=D1=83=D1=81=D1=82=D1=80=D0=B0=D0=BD=D0=B5?= =?UTF-8?q?=D0=BD=D0=B0=20=D0=BE=D1=88=D0=B8=D0=B1=D0=BA=D0=B0=20=D1=82?= =?UTF-8?q?=D0=B8=D0=BF=D0=B0=20=D0=BF=D1=80=D0=B8=20=D0=B8=D0=BD=D0=B4?= =?UTF-8?q?=D0=B5=D0=BA=D1=81=D0=B0=D1=86=D0=B8=D0=B8=20=D0=BC=D0=B0=D1=81?= =?UTF-8?q?=D1=81=D0=B8=D0=B2=D0=B0=20(strict=20noUncheckedIndexedAccess)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- tests/probe.test.ts | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/tests/probe.test.ts b/tests/probe.test.ts index 5a6e935..a896276 100644 --- a/tests/probe.test.ts +++ b/tests/probe.test.ts @@ -21,7 +21,9 @@ describe('probeIntervalMs (decay ladder)', () => { it('is monotonic — intervals never shrink with age', () => { const samples = [0, 60_000, 5 * 60_000, 30 * 60_000, 3 * 60 * 60_000]; const intervals = samples.map((a) => probeIntervalMs(a) ?? Infinity); - for (let i = 1; i < intervals.length; i++) expect(intervals[i]).toBeGreaterThanOrEqual(intervals[i - 1]); + for (let i = 1; i < intervals.length; i++) { + expect(intervals[i] as number).toBeGreaterThanOrEqual(intervals[i - 1] as number); + } }); });