Skip to content

Commit 3712225

Browse files
committed
chore(*): Adjust test timezone due to test machine difference.
1 parent d7b4665 commit 3712225

File tree

1 file changed

+8
-8
lines changed

1 file changed

+8
-8
lines changed

projects/igniteui-angular/src/lib/core/utils.spec.ts

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -301,10 +301,10 @@ describe('Utils', () => {
301301

302302
it('should format string to dateTime using Intl', () => {
303303
toggleIgxAngularLocalization(false);
304-
expect(formatDate('2025-01-25T14:15:00', 'short', 'en-US', "Europe/Sofia")).toEqual('1/25/25, 2:15 PM');
305-
expect(formatDate('2025-01-25T14:15:00', 'medium', 'en-US', "Europe/Sofia")).toEqual('Jan 25, 2025, 2:15:00 PM');
306-
expect(formatDate('2025-01-25T14:15:00', 'long', 'en-US', "Europe/Sofia")).toEqual('January 25, 2025 at 2:15:00 PM GMT+2');
307-
expect(formatDate('2025-01-25T14:15:00', 'full', 'en-US', "Europe/Sofia")).toEqual('Saturday, January 25, 2025 at 2:15:00 PM Eastern European Standard Time');
304+
expect(formatDate('2025-01-25T14:15:00+02:00', 'short', 'en-US', "Europe/Sofia")).toEqual('1/25/25, 2:15 PM');
305+
expect(formatDate('2025-01-25T14:15:00+02:00', 'medium', 'en-US', "Europe/Sofia")).toEqual('Jan 25, 2025, 2:15:00 PM');
306+
expect(formatDate('2025-01-25T14:15:00+02:00', 'long', 'en-US', "Europe/Sofia")).toEqual('January 25, 2025 at 2:15:00 PM GMT+2');
307+
expect(formatDate('2025-01-25T14:15:00+02:00', 'full', 'en-US', "Europe/Sofia")).toEqual('Saturday, January 25, 2025 at 2:15:00 PM Eastern European Standard Time');
308308
toggleIgxAngularLocalization(true);
309309
});
310310

@@ -325,10 +325,10 @@ describe('Utils', () => {
325325

326326
it('should format string to time using Intl', () => {
327327
toggleIgxAngularLocalization(false);
328-
expect(formatDate('2025-01-25T14:15:00', 'shortTime', 'en-US', "Europe/Sofia")).toEqual('2:15 PM');
329-
expect(formatDate('2025-01-25T14:15:00', 'mediumTime', 'en-US', "Europe/Sofia")).toEqual('2:15:00 PM');
330-
expect(formatDate('2025-01-25T14:15:00', 'longTime', 'en-US', "Europe/Sofia")).toEqual('2:15:00 PM GMT+2');
331-
expect(formatDate('2025-01-25T14:15:00', 'fullTime', 'en-US', "Europe/Sofia")).toEqual('2:15:00 PM Eastern European Standard Time');
328+
expect(formatDate('2025-01-25T14:15:00+02:00', 'shortTime', 'en-US', "Europe/Sofia")).toEqual('2:15 PM');
329+
expect(formatDate('2025-01-25T14:15:00+02:00', 'mediumTime', 'en-US', "Europe/Sofia")).toEqual('2:15:00 PM');
330+
expect(formatDate('2025-01-25T14:15:00+02:00', 'longTime', 'en-US', "Europe/Sofia")).toEqual('2:15:00 PM GMT+2');
331+
expect(formatDate('2025-01-25T14:15:00+02:00', 'fullTime', 'en-US', "Europe/Sofia")).toEqual('2:15:00 PM Eastern European Standard Time');
332332
toggleIgxAngularLocalization(true);
333333
});
334334

0 commit comments

Comments
 (0)