Skip to content

Commit b71d737

Browse files
Draggable - Fix missing Jest imports and typing in dispose test (#33791)
1 parent 1aaa020 commit b71d737

1 file changed

Lines changed: 7 additions & 1 deletion

File tree

packages/devextreme/js/__internal/__tests__/draggable_dispose.test.ts

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,9 @@
1+
import {
2+
beforeEach,
3+
describe,
4+
expect,
5+
it,
6+
} from '@jest/globals';
17
import $ from '@js/core/renderer';
28
import Sortable from '@js/ui/sortable';
39

@@ -8,7 +14,7 @@ describe('Draggable dispose safety', () => {
814

915
it('should not crash on _stopAnimator when _scrollAnimator is not initialized', () => {
1016
const $container = $('<div>').appendTo(document.body);
11-
const sortable = new Sortable($container, {});
17+
const sortable = new Sortable($container.get(0), {});
1218

1319
(sortable as any)._scrollAnimator = undefined;
1420

0 commit comments

Comments
 (0)