File tree Expand file tree Collapse file tree 1 file changed +3
-6
lines changed
packages/devextreme/testing/tests/DevExpress.ui.events Expand file tree Collapse file tree 1 file changed +3
-6
lines changed Original file line number Diff line number Diff line change @@ -596,7 +596,6 @@ QUnit.test('removing subscriptions should not remove data from elementDataMap if
596596} ) ;
597597
598598QUnit . test ( 'should not leak memory when subscribing on document and clicking elements (T1307313)' , function ( assert ) {
599- const done = assert . async ( ) ;
600599 const clickEventName = 'dxclick' ;
601600 const fixture = document . getElementById ( 'qunit-fixture' ) ;
602601
@@ -610,14 +609,12 @@ QUnit.test('should not leak memory when subscribing on document and clicking ele
610609 testElement . click ( ) ;
611610 }
612611
613- const eventData = eventsEngine . elementDataMap . get ( document ) [ 'dxremove' ] ;
612+ const eventData = eventsEngine . elementDataMap . get ( document ) ;
614613
615614 assert . ok (
616- eventData . length <= 5 ,
617- `Memory should not leak. Element data: ${ eventData . length } `
615+ eventData ? .length <= 5 ,
616+ `Memory should not leak. Element data: ${ eventData } `
618617 ) ;
619-
620- done ( ) ;
621618} ) ;
622619
623620QUnit . module ( 'Strategy' ) ;
You can’t perform that action at this time.
0 commit comments