test(editor): Use a relative date for the Insights custom range (#41494)

This commit is contained in:
Robin Braumann 2026-10-20 07:37:52 +00:00 committed by GitHub
parent 373c57797e
commit 397adabdda
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -316,9 +316,10 @@ describe('Insights Transformers', () => {
});
it('should return null for custom range', () => {
const end = today(getLocalTimeZone());
const result = getMatchingPreset({
start: new CalendarDate(2025, 10, 20),
end: today(getLocalTimeZone()),
start: end.subtract({ days: 10 }),
end,
});
expect(result).toBeNull();