소스 검색

Changed: Fixed logging of applied operation and a test.

Szymon Cofalik 9 년 전
부모
커밋
d47b66daeb
2개의 변경된 파일2개의 추가작업 그리고 2개의 파일을 삭제
  1. 1 1
      packages/ckeditor5-engine/src/dev-utils/enableenginedebug.js
  2. 1 1
      packages/ckeditor5-engine/tests/dev-utils/enableenginedebug.js

+ 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;
 		} );
 	} );