Skip to content

Commit 9e6e49e

Browse files
committed
fix Qunits
1 parent 20eb9a5 commit 9e6e49e

File tree

2 files changed

+16
-9
lines changed

2 files changed

+16
-9
lines changed
Lines changed: 15 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,15 @@
1-
export const mockDataAccessor = {
2-
get(prop, obj) {
3-
return obj[prop];
4-
},
5-
set(prop, obj, value) {
6-
obj[prop] = value;
7-
}
8-
};
1+
import { AppointmentDataAccessor } from '__internal/scheduler/utils/data_accessor/appointment_data_accessor';
2+
3+
export const mockDataAccessor = new AppointmentDataAccessor({
4+
startDateExpr: 'startDate',
5+
endDateExpr: 'endDate',
6+
startDateTimeZoneExpr: 'startDateTimeZone',
7+
endDateTimeZoneExpr: 'endDateTimeZone',
8+
allDayExpr: 'allDay',
9+
textExpr: 'text',
10+
descriptionExpr: 'description',
11+
recurrenceRuleExpr: 'recurrenceRule',
12+
recurrenceExceptionExpr: 'recurrenceException',
13+
disabledExpr: 'disabled',
14+
visibleExpr: 'visible',
15+
}, true);

packages/devextreme/testing/tests/DevExpress.ui.widgets.scheduler/common.options.tests.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,7 @@ QUnit.module('Options', () => {
7979
const dataAccessors = scheduler.instance._dataAccessors;
8080

8181
$.each(dataAccessors.getter, function(name, getter) {
82-
assert.equal(dataAccessors.getter[name](appointment), data[name], 'getter for ' + name + ' is OK');
82+
assert.deepEqual(dataAccessors.getter[name](appointment), data[name], 'getter for ' + name + ' is OK');
8383
});
8484

8585
$.each(dataAccessors.setter, function(name, getter) {

0 commit comments

Comments
 (0)