Skip to content

Commit ba007c5

Browse files
committed
simplify
1 parent c3371e5 commit ba007c5

2 files changed

Lines changed: 17 additions & 30 deletions

File tree

packages/devextreme/js/__internal/scheduler/__tests__/__snapshots__/recurrence.DST.test.ts.snap

Lines changed: 0 additions & 27 deletions
This file was deleted.

packages/devextreme/js/__internal/scheduler/__tests__/recurrence.DST.test.ts

Lines changed: 17 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,9 @@ describe('Recurrence appointments', () => {
5858
scheduler.option('currentDate', ChicagoDST[1]);
5959
dates.push(...getDates());
6060

61-
expect(reduceDates(dates)).toMatchSnapshot();
61+
expect(reduceDates(dates)).toEqual([
62+
'7:00 AM - 8:00 AM',
63+
]);
6264
});
6365

6466
it('should change dates according to DST in target (Sydney) and appointment timezones (T1305659)', async () => {
@@ -81,7 +83,13 @@ describe('Recurrence appointments', () => {
8183
scheduler.option('currentDate', ChicagoDST[1]);
8284
dates.push(...getDates());
8385

84-
expect(reduceDates(dates)).toMatchSnapshot();
86+
expect(reduceDates(dates)).toEqual([
87+
'12:00 AM - 1:00 AM',
88+
'11:00 PM - 12:00 AM',
89+
'10:00 PM - 11:00 PM',
90+
'11:00 PM - 12:00 AM',
91+
'12:00 AM - 1:00 AM',
92+
]);
8593
});
8694

8795
it('should change dates according to DST in target (Belgrade) and appointment timezones (T1305659)', async () => {
@@ -104,6 +112,12 @@ describe('Recurrence appointments', () => {
104112
scheduler.option('currentDate', ChicagoDST[1]);
105113
dates.push(...getDates());
106114

107-
expect(reduceDates(dates)).toMatchSnapshot();
115+
expect(reduceDates(dates)).toEqual([
116+
'2:00 PM - 3:00 PM',
117+
'1:00 PM - 2:00 PM',
118+
'2:00 PM - 3:00 PM',
119+
'1:00 PM - 2:00 PM',
120+
'2:00 PM - 3:00 PM',
121+
]);
108122
});
109123
});

0 commit comments

Comments
 (0)