Browse Source

Tests: Replaced spy.reset() with spy.resetHistory(). See ckeditor/ckeditor5#801.

Kamil Piechaczek 7 years ago
parent
commit
573b40c66f
1 changed files with 4 additions and 4 deletions
  1. 4 4
      packages/ckeditor5-ui/tests/panel/balloon/contextualballoon.js

+ 4 - 4
packages/ckeditor5-ui/tests/panel/balloon/contextualballoon.js

@@ -407,7 +407,7 @@ describe( 'ContextualBalloon', () => {
 				}
 			} );
 
-			balloon.view.pin.reset();
+			balloon.view.pin.resetHistory();
 
 			balloon.updatePosition();
 
@@ -419,7 +419,7 @@ describe( 'ContextualBalloon', () => {
 		} );
 
 		it( 'should set given position to the currently visible view and use position from the first view in the stack #1', () => {
-			balloon.view.pin.reset();
+			balloon.view.pin.resetHistory();
 
 			balloon.updatePosition( { target: 'new' } );
 
@@ -438,7 +438,7 @@ describe( 'ContextualBalloon', () => {
 				}
 			} );
 
-			balloon.view.pin.reset();
+			balloon.view.pin.resetHistory();
 
 			balloon.updatePosition( { target: 'new' } );
 
@@ -460,7 +460,7 @@ describe( 'ContextualBalloon', () => {
 		} );
 
 		it( 'should use a given position limiter instead of the default one', () => {
-			balloon.view.pin.reset();
+			balloon.view.pin.resetHistory();
 
 			balloon.updatePosition( {
 				target: 'new',