@@ -231,7 +231,7 @@ describe("DragAndDropHandler", () => {
231231 expect ( dragAndDropHandler . mouseCapture ( positionInfo ) ) . toBeTrue ( ) ;
232232 expect ( dragAndDropHandler . currentItem ?. node ) . toBe ( node1 ) ;
233233
234- expect ( onIsMoveHandle ) . toHaveBeenCalledWith ( expect . anything ( ) ) ;
234+ expect ( onIsMoveHandle ) . toHaveBeenCalledExactlyOnceWith ( expect . anything ( ) ) ;
235235 } ) ;
236236
237237 it ( "doesn't capture the node when onIsMoveHandle returns false" , ( ) => {
@@ -257,7 +257,7 @@ describe("DragAndDropHandler", () => {
257257 expect ( dragAndDropHandler . mouseCapture ( positionInfo ) ) . toBeNull ( ) ;
258258 expect ( dragAndDropHandler . currentItem ) . toBeNull ( ) ;
259259
260- expect ( onIsMoveHandle ) . toHaveBeenCalledWith ( expect . anything ( ) ) ;
260+ expect ( onIsMoveHandle ) . toHaveBeenCalledExactlyOnceWith ( expect . anything ( ) ) ;
261261 } ) ;
262262
263263 it ( "doesn't capture when onCanMove returns false" , ( ) => {
@@ -287,7 +287,7 @@ describe("DragAndDropHandler", () => {
287287 expect ( dragAndDropHandler . mouseCapture ( positionInfo ) ) . toBeFalse ( ) ;
288288 expect ( dragAndDropHandler . currentItem ) . toBeNull ( ) ;
289289
290- expect ( onCanMove ) . toHaveBeenCalledWith ( node2 ) ;
290+ expect ( onCanMove ) . toHaveBeenCalledExactlyOnceWith ( node2 ) ;
291291 } ) ;
292292
293293 it ( "captures when onCanMove returns true" , ( ) => {
@@ -317,7 +317,7 @@ describe("DragAndDropHandler", () => {
317317 expect ( dragAndDropHandler . mouseCapture ( positionInfo ) ) . toBeTrue ( ) ;
318318 expect ( dragAndDropHandler . currentItem ?. node ) . toStrictEqual ( node2 ) ;
319319
320- expect ( onCanMove ) . toHaveBeenCalledWith ( node2 ) ;
320+ expect ( onCanMove ) . toHaveBeenCalledExactlyOnceWith ( node2 ) ;
321321 } ) ;
322322 } ) ;
323323
@@ -465,7 +465,7 @@ describe("DragAndDropHandler", () => {
465465 // Stop
466466 dragAndDropHandler . mouseStop ( dragPositionInfo ) ;
467467
468- expect ( triggerEvent ) . toHaveBeenCalledWith (
468+ expect ( triggerEvent ) . toHaveBeenCalledExactlyOnceWith (
469469 "tree.move" ,
470470 expect . objectContaining ( {
471471 move_info : {
@@ -524,7 +524,7 @@ describe("DragAndDropHandler", () => {
524524 // Stop
525525 dragAndDropHandler . mouseStop ( dragPositionInfo ) ;
526526
527- expect ( mockMoveNode ) . toHaveBeenCalledWith ( node1 , node2 , "inside" ) ;
527+ expect ( mockMoveNode ) . toHaveBeenCalledExactlyOnceWith ( node1 , node2 , "inside" ) ;
528528 } ) ;
529529
530530 it ( "calls onDragStop when there is no hovered area" , ( ) => {
@@ -573,7 +573,7 @@ describe("DragAndDropHandler", () => {
573573 target : document . body ,
574574 } ) ;
575575
576- expect ( onDragStop ) . toHaveBeenCalledWith ( node1 , originalEvent ) ;
576+ expect ( onDragStop ) . toHaveBeenCalledExactlyOnceWith ( node1 , originalEvent ) ;
577577 } ) ;
578578 } ) ;
579579
@@ -790,7 +790,7 @@ describe("DragAndDropHandler", () => {
790790 // Move mouse
791791 dragAndDropHandler . mouseDrag ( positionInfoForDragging ) ;
792792
793- expect ( onDragMove ) . toHaveBeenCalledWith (
793+ expect ( onDragMove ) . toHaveBeenCalledExactlyOnceWith (
794794 node1 ,
795795 positionInfoForDragging . originalEvent ,
796796 ) ;
@@ -832,7 +832,7 @@ describe("DragAndDropHandler", () => {
832832 target : node2 . element as HTMLElement ,
833833 } ) ;
834834
835- expect ( onCanMoveTo ) . toHaveBeenCalledWith ( node1 , node2 , "inside" ) ;
835+ expect ( onCanMoveTo ) . toHaveBeenCalledExactlyOnceWith ( node1 , node2 , "inside" ) ;
836836
837837 // Still sets hoveredArea to the new node
838838 expect ( dragAndDropHandler . hoveredArea ?. node ) . toStrictEqual ( node2 ) ;
@@ -886,7 +886,7 @@ describe("DragAndDropHandler", () => {
886886
887887 vi . advanceTimersByTime ( 100 ) ;
888888
889- expect ( openNode ) . toHaveBeenCalledWith (
889+ expect ( openNode ) . toHaveBeenCalledExactlyOnceWith (
890890 node2 ,
891891 false ,
892892 expect . toBeFunction ( ) ,
0 commit comments