[Lens] fix toEsql test use all-year UTC timezone (#216425)

## Summary

The test should verify if a timezone that falls under UTC offset can
correctly transform a formBased lens configuation to an ESQL query.
Unfortunately the choosen timezone (Europe/London) falls under UTC only
when not in DST.
I've selected one of the few countries that falls under UTC all year
round to have this test pass correctly independently on when it is
executed.
This commit is contained in:
Marco Vettorello 2025-03-31 11:05:34 +02:00 committed by GitHub
parent e60b91a076
commit 7bea047831
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -282,9 +282,10 @@ describe('to_esql', () => {
expect(esql).toEqual(undefined);
});
it('should work with iana timezones that fall udner utc+0', () => {
it('should work with iana timezones that fall under UTC+0', () => {
uiSettings.get.mockImplementation((key: string) => {
if (key === 'dateFormat:tz') return 'Europe/London';
// There are only few countries that falls under UTC all year round, others just fall into that configuration half hear when not in DST
if (key === 'dateFormat:tz') return 'Atlantic/Reykjavik';
return defaultUiSettingsGet(key);
});