test(workorders): avoid Array.prototype.at outside the ES2020 lib

This commit is contained in:
Alexandre Brandizzi 2026-09-25 11:11:09 -03:00
parent e052dcb37a
commit 5f8218b09a

View file

@ -28,6 +28,6 @@ describe("work-order ids filter", () => {
expect(normalized).toHaveLength(WORK_ORDER_IDS_MAX);
expect(normalized[0]).toBe(1);
expect(normalized.at(-1)).toBe(WORK_ORDER_IDS_MAX);
expect(normalized[normalized.length - 1]).toBe(WORK_ORDER_IDS_MAX);
});
});