ソースを参照

Tests: Mute expected warnings. Closes #936.

Piotrek Koszuliński 8 年 前
コミット
99fc84260a

+ 3 - 3
packages/ckeditor5-engine/tests/conversion/viewconversiondispatcher.js

@@ -270,7 +270,7 @@ describe( 'ViewConversionDispatcher', () => {
 			} );
 
 			it( 'should do nothing if element was not converted', () => {
-				sinon.spy( log, 'warn' );
+				sinon.stub( log, 'warn' );
 
 				dispatcher.on( 'documentFragment', ( evt, data, consumable, conversionApi ) => {
 					spy();
@@ -289,7 +289,7 @@ describe( 'ViewConversionDispatcher', () => {
 			} );
 
 			it( 'should return null if element was incorrectly converted and log a warning', () => {
-				sinon.spy( log, 'warn' );
+				sinon.stub( log, 'warn' );
 
 				dispatcher.on( 'documentFragment', ( evt, data, consumable, conversionApi ) => {
 					spy();
@@ -331,7 +331,7 @@ describe( 'ViewConversionDispatcher', () => {
 			} );
 
 			it( 'should filter out incorrectly converted elements and log warnings', () => {
-				sinon.spy( log, 'warn' );
+				sinon.stub( log, 'warn' );
 
 				dispatcher.on( 'documentFragment', ( evt, data, consumable, conversionApi ) => {
 					spy();