Browse Source

Tests: Changed sinon.reset() to sinon.resetHistory().

Oskar Wróbel 7 years ago
parent
commit
0d8aa1ce01
1 changed files with 2 additions and 2 deletions
  1. 2 2
      packages/ckeditor5-ui/tests/toolbar/block/blocktoolbar.js

+ 2 - 2
packages/ckeditor5-ui/tests/toolbar/block/blocktoolbar.js

@@ -393,7 +393,7 @@ describe( 'BlockToolbar', () => {
 
 			setData( editor.model, '<table>foo</table><paragraph>ba[]r</paragraph>' );
 
-			spy.reset();
+			spy.resetHistory();
 
 			window.dispatchEvent( new Event( 'resize' ) );
 
@@ -401,7 +401,7 @@ describe( 'BlockToolbar', () => {
 
 			setData( editor.model, '<table>fo[]o</table><paragraph>bar</paragraph>' );
 
-			spy.reset();
+			spy.resetHistory();
 
 			window.dispatchEvent( new Event( 'resize' ) );