mirror of
https://github.com/Trollobot/Telemax.git
synced 2026-08-29 14:31:40 +00:00
Тест зонда: устранена ошибка типа при индексации массива (strict noUncheckedIndexedAccess)
This commit is contained in:
parent
e469012c37
commit
e3e694f9ff
1 changed files with 3 additions and 1 deletions
|
|
@ -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);
|
||||
}
|
||||
});
|
||||
});
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue