Skip to content

Commit b1a8b49

Browse files
committed
test: add test
1 parent 59d0a4b commit b1a8b49

File tree

1 file changed

+2
-5
lines changed

1 file changed

+2
-5
lines changed

packages/devextreme/js/__internal/scheduler/appointment_popup/appointment_popup.test.ts

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1492,7 +1492,7 @@ describe('Appointment Popup Form', () => {
14921492

14931493
it('should call onShowing callback when popup is shown', async () => {
14941494
const onShowing = jest.fn();
1495-
const { scheduler, POM } = await createScheduler({
1495+
const { scheduler } = await createScheduler({
14961496
...getDefaultConfig(),
14971497
editing: {
14981498
allowAdding: true,
@@ -1505,14 +1505,13 @@ describe('Appointment Popup Form', () => {
15051505

15061506
scheduler.showAppointmentPopup(commonAppointment);
15071507

1508-
expect(POM.popup.component.option('visible')).toBe(true);
15091508
expect(onShowing).toHaveBeenCalled();
15101509
expect(onShowing).toHaveBeenCalledTimes(1);
15111510
});
15121511

15131512
it('should call onHiding callback when popup is hidden', async () => {
15141513
const onHiding = jest.fn();
1515-
const { scheduler, POM } = await createScheduler({
1514+
const { scheduler } = await createScheduler({
15161515
...getDefaultConfig(),
15171516
editing: {
15181517
allowAdding: true,
@@ -1525,12 +1524,10 @@ describe('Appointment Popup Form', () => {
15251524

15261525
scheduler.showAppointmentPopup(commonAppointment);
15271526

1528-
expect(POM.popup.component.option('visible')).toBe(true);
15291527
expect(onHiding).not.toHaveBeenCalled();
15301528

15311529
scheduler.hideAppointmentPopup();
15321530

1533-
expect(POM.popup.component.option('visible')).toBe(false);
15341531
expect(onHiding).toHaveBeenCalled();
15351532
expect(onHiding).toHaveBeenCalledTimes(1);
15361533
});

0 commit comments

Comments
 (0)