Skip to content

Commit bd3bcbd

Browse files
Global format config. Implementation for dateFormat, dateTimeFormat, NumberFormat
1 parent bd86b8a commit bd3bcbd

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

packages/devextreme/testing/tests/DevExpress.ui.widgets.scheduler/integration.appointmentTooltip.tests.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -98,8 +98,8 @@ module('Global formatting config (spec): Scheduler tooltip', {
9898
test('implicit Scheduler tooltip date/time use global dateFormat and timeFormat', async function(assert) {
9999
config({
100100
...config(),
101-
dateFormat: (date) => `D${date.getDate()}`,
102-
timeFormat: (date) => `T${date.getHours()}`,
101+
dateFormat: (date) => `Date${date.getDate()}`,
102+
timeFormat: (date) => `Time${date.getHours()}`,
103103
});
104104

105105
const scheduler = await createScheduler({
@@ -113,7 +113,7 @@ module('Global formatting config (spec): Scheduler tooltip', {
113113
await scheduler.appointments.click(0, clock);
114114
clock.restore();
115115

116-
assert.strictEqual(scheduler.tooltip.getDateText(), 'D9, T23 - D10, T1');
116+
assert.strictEqual(scheduler.tooltip.getDateText(), 'Date9 Time23 - Date10 Time1');
117117
});
118118
});
119119

0 commit comments

Comments
 (0)