File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed
packages/devextreme/testing/tests/DevExpress.ui.events Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -57,15 +57,15 @@ QUnit.test('should not leave extra handlers in elementDataMap when using subscri
5757 const finalButtonData = eventsEngine . elementDataMap . get ( testElement ) ;
5858 const finalButtonHandleObjectsCount = finalButtonData && finalButtonData [ removeEvent ]
5959 ? finalButtonData [ removeEvent ] . handleObjects . length
60- : 0 ;
60+ : - 1 ;
6161
6262 const finalElementData = eventsEngine . elementDataMap . get ( document ) ;
6363 const finalHandleObjectsCount = finalElementData && finalElementData [ removeEvent ]
6464 ? finalElementData [ removeEvent ] . handleObjects . length
65- : 0 ;
65+ : - 1 ;
6666
6767 assert . ok (
6868 finalHandleObjectsCount <= 1 ,
69- `HandleObjects count should return to initial state. Final: ${ finalHandleObjectsCount } ; ${ finalButtonHandleObjectsCount } ; ${ Object . keys ( finalButtonData ) } `
69+ `HandleObjects count should return to initial state. Final: ${ finalHandleObjectsCount } ; ${ finalButtonHandleObjectsCount } ; ${ finalButtonData ? Object . keys ( finalButtonData ) : '-0' } `
7070 ) ;
7171} ) ;
You can’t perform that action at this time.
0 commit comments