浏览代码

Tests: Changed some tests after OT refactor.

Szymon Cofalik 7 年之前
父节点
当前提交
c85c7a6345

+ 2 - 2
packages/ckeditor5-paragraph/tests/paragraph.js

@@ -436,8 +436,8 @@ describe( 'Paragraph feature', () => {
 				} );
 			} );
 
-			expect( Array.from( removeBatch.deltas, delta => delta.type ) ).to.include.members( [ 'insert' ] );
-			expect( Array.from( attributeBatch.deltas, delta => delta.type ) ).to.not.include.members( [ 'insert' ] );
+			expect( Array.from( removeBatch.operations, operation => operation.type ) ).to.include.members( [ 'insert' ] );
+			expect( Array.from( attributeBatch.operations, operation => operation.type ) ).to.not.include.members( [ 'insert' ] );
 		} );
 	} );
 

+ 4 - 4
packages/ckeditor5-paragraph/tests/paragraphcommand.js

@@ -159,11 +159,11 @@ describe( 'ParagraphCommand', () => {
 			setData( model, '<paragraph>foo[</paragraph><heading1>bar]</heading1>' );
 
 			model.change( writer => {
-				expect( writer.batch.deltas.length ).to.equal( 0 );
+				expect( writer.batch.operations.length ).to.equal( 0 );
 
 				command.execute();
 
-				expect( writer.batch.deltas.length ).to.equal( 1 );
+				expect( writer.batch.operations.length ).to.equal( 1 );
 			} );
 		} );
 
@@ -172,11 +172,11 @@ describe( 'ParagraphCommand', () => {
 				setData( model, '<heading1>foo[]bar</heading1>' );
 
 				model.change( writer => {
-					expect( writer.batch.deltas.length ).to.equal( 0 );
+					expect( writer.batch.operations.length ).to.equal( 0 );
 
 					command.execute();
 
-					expect( writer.batch.deltas.length ).to.above( 0 );
+					expect( writer.batch.operations.length ).to.above( 0 );
 				} );
 			} );