瀏覽代碼

Changed: Fixed logging of applied operation and a test.

Szymon Cofalik 8 年之前
父節點
當前提交
d47b66daeb

+ 1 - 1
packages/ckeditor5-engine/src/dev-utils/enableenginedebug.js

@@ -405,7 +405,7 @@ function enableDocumentTools() {
 	const _modelDocumentApplyOperation = ModelDocument.prototype.applyOperation;
 
 	ModelDocument.prototype.applyOperation = function( operation ) {
-		log( 'Applying : ' + operation );
+		log( 'Applying ' + operation );
 
 		_modelDocumentApplyOperation.call( this, operation );
 	};

+ 1 - 1
packages/ckeditor5-engine/tests/dev-utils/enableenginedebug.js

@@ -394,7 +394,7 @@ describe( 'debug tools', () => {
 
 			modelDoc.applyOperation( op );
 
-			expect( log.calledWithExactly( 'Applying InsertOperation: [ 1 ] -> main [ 0 ]' ) );
+			expect( log.calledWithExactly( 'Applying InsertOperation: [ 1 ] -> main [ 0 ]' ) ).to.be.true;
 		} );
 	} );