Ver código fonte

Tests: Updated stubs to the latest Sinon API.

Aleksander Nowodzinski 8 anos atrás
pai
commit
6acefd8450
1 arquivos alterados com 1 adições e 1 exclusões
  1. 1 1
      packages/ckeditor5-clipboard/tests/clipboard.js

+ 1 - 1
packages/ckeditor5-clipboard/tests/clipboard.js

@@ -37,7 +37,7 @@ describe( 'Clipboard feature', () => {
 
 				// VirtualTestEditor has no DOM, so this method must be stubbed for all tests.
 				// Otherwise it will throw as it accesses the DOM to do its job.
-				scrollSpy = sinon.stub( editingView, 'scrollToTheSelection', () => {} );
+				scrollSpy = sinon.stub( editingView, 'scrollToTheSelection' );
 			} );
 	} );