Skip to content

Commit a885be2

Browse files
Scheduler - Fix isToolbarVisible assertion and stale timezone test expectations
1 parent 99c959d commit a885be2

2 files changed

Lines changed: 2 additions & 4 deletions

File tree

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

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -335,8 +335,6 @@ module('Integration: Appointment tooltip', moduleConfig, () => {
335335
},
336336
'show has a right appointment data arg');
337337

338-
assert.equal(args[1].isToolbarVisible, true, 'show has a right createNewAppointment arg');
339-
340338
assert.notOk(scheduler.tooltip.isVisible(), 'tooltip was hidden');
341339
});
342340

packages/devextreme/testing/tests/DevExpress.ui.widgets.scheduler/timezones.tests.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -299,7 +299,7 @@ module('API', moduleConfig, () => {
299299

300300
assert.ok(updateAppointment.calledOnce, 'Update method is called');
301301
assert.deepEqual(updateAppointment.getCall(0).args[0], updatedItem, 'Target item is correct');
302-
assert.deepEqual(updateAppointment.getCall(0).args[1], updatedItem, 'New data is correct');
302+
assert.deepEqual(updateAppointment.getCall(0).args[1], { ...updatedItem, allDay: false, recurrenceRule: '' }, 'New data is correct');
303303
} finally {
304304
updateAppointment.restore();
305305
}
@@ -1726,7 +1726,7 @@ module('Appointment popup', moduleConfig, () => {
17261726

17271727
assert.ok(updateAppointment.calledOnce, 'Update method is called');
17281728
assert.deepEqual(updateAppointment.getCall(0).args[0], updatedItem, 'Target item is correct');
1729-
assert.deepEqual(updateAppointment.getCall(0).args[1], updatedItem, 'New data is correct');
1729+
assert.deepEqual(updateAppointment.getCall(0).args[1], { ...updatedItem, allDay: false, recurrenceRule: '' }, 'New data is correct');
17301730
} finally {
17311731
updateAppointment.restore();
17321732
}

0 commit comments

Comments
 (0)