Skip to content

Commit 9a959be

Browse files
test(Scheduler): update agenda tests for renamed private methods
1 parent 13511f3 commit 9a959be

2 files changed

Lines changed: 9 additions & 9 deletions

File tree

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

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ module('Agenda', {}, () => {
3333
const config = {
3434
onContentReady: e => {
3535
e.component.renderView();
36-
e.component._recalculateAgenda(rows);
36+
e.component.recalculateAgenda(rows);
3737
},
3838
getResourceManager: getEmptyResourceManager,
3939
};
@@ -65,7 +65,7 @@ module('Agenda', {}, () => {
6565
const rows = [[0, 0, 0, 0, 0], [0, 0, 0, 0, 1], [0, 0, 0, 0, 0], [1, 1, 1, 0, 1]];
6666

6767
const instance = createInstance();
68-
const resultRows = instance._removeEmptyRows(rows);
68+
const resultRows = instance.removeEmptyRows(rows);
6969

7070
assert.deepEqual(resultRows, [[0, 0, 0, 0, 1], [1, 1, 1, 0, 1]], 'The empty rows was removed');
7171
});
@@ -140,7 +140,7 @@ module('Agenda', {}, () => {
140140
test('Agenda should be recalculated after rowHeight changed', async function(assert) {
141141
const instance = createInstance();
142142

143-
const recalculateStub = sinon.stub(instance, '_recalculateAgenda');
143+
const recalculateStub = sinon.stub(instance, 'recalculateAgenda');
144144

145145
instance.option('rowHeight', 100);
146146

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

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -786,7 +786,7 @@ module('Integration: Agenda', moduleConfig, () => {
786786
const rowHeight = 77;
787787
const $element = instance.$element();
788788
const expectedWidth = getOuterWidth($element.find('.dx-scheduler-date-table'));
789-
const agendaStub = sinon.stub(agenda, '_getRowHeight').returns(rowHeight);
789+
const agendaStub = sinon.stub(agenda, 'getRowHeight').returns(rowHeight);
790790

791791
try {
792792
instance.option('dataSource', [
@@ -1565,7 +1565,7 @@ module('Integration: Agenda', moduleConfig, () => {
15651565
instance.option('dataSource', data);
15661566
await waitAsync(0);
15671567

1568-
const calculatedRows = agendaWorkspace._rows[0];
1568+
const calculatedRows = agendaWorkspace.rows[0];
15691569
assert.equal(calculatedRows.length, 65, 'Rows are OK');
15701570

15711571
$.each(calculatedRows, function(index, item) {
@@ -1606,7 +1606,7 @@ module('Integration: Agenda', moduleConfig, () => {
16061606
instance.option('dataSource', data);
16071607
await waitAsync(0);
16081608

1609-
const calculatedRows = agendaWorkspace._rows;
1609+
const calculatedRows = agendaWorkspace.rows;
16101610
assert.deepEqual(calculatedRows, [[1, 2, 2, 2, 2]], 'Rows are OK');
16111611
} finally {
16121612
endViewDateStub.restore();
@@ -1640,7 +1640,7 @@ module('Integration: Agenda', moduleConfig, () => {
16401640
instance.option('dataSource', data);
16411641
await waitAsync(0);
16421642

1643-
const calculatedRows = agendaWorkspace._rows;
1643+
const calculatedRows = agendaWorkspace.rows;
16441644
assert.deepEqual(calculatedRows, [[0, 1, 1, 1, 0]], 'Rows are OK');
16451645
} finally {
16461646
endViewDateStub.restore();
@@ -1671,7 +1671,7 @@ module('Integration: Agenda', moduleConfig, () => {
16711671
instance.option('dataSource', data);
16721672
await waitAsync(0);
16731673

1674-
const calculatedRows = agendaWorkspace._rows;
1674+
const calculatedRows = agendaWorkspace.rows;
16751675
assert.deepEqual(calculatedRows, [[1, 1, 1, 1, 0]], 'Rows are OK');
16761676
} finally {
16771677
endViewDateStub.restore();
@@ -1709,7 +1709,7 @@ module('Integration: Agenda', moduleConfig, () => {
17091709
instance.option('dataSource', data);
17101710
await waitAsync(0);
17111711

1712-
const calculatedRows = agendaWorkspace._rows;
1712+
const calculatedRows = agendaWorkspace.rows;
17131713
assert.deepEqual(calculatedRows, [[0, 1, 1, 0, 1, 1, 0]], 'Rows are OK');
17141714
} finally {
17151715
endViewDateStub.restore();

0 commit comments

Comments
 (0)