Procházet zdrojové kódy

Tests: Changed some tests after OT refactor.

Szymon Cofalik před 7 roky
rodič
revize
04ccc2b344

+ 2 - 2
packages/ckeditor5-basic-styles/tests/attributecommand.js

@@ -284,9 +284,9 @@ describe( 'AttributeCommand', () => {
 			setData( model, '<p>a[bc<$text bold="true">fo]obar</$text>xyz</p>' );
 			setData( model, '<p>a[bc<$text bold="true">fo]obar</$text>xyz</p>' );
 
 
 			model.change( writer => {
 			model.change( writer => {
-				expect( writer.batch.deltas.length ).to.equal( 0 );
+				expect( writer.batch.operations.length ).to.equal( 0 );
 				command.execute();
 				command.execute();
-				expect( writer.batch.deltas.length ).to.equal( 1 );
+				expect( writer.batch.operations.length ).to.equal( 1 );
 			} );
 			} );
 
 
 			expect( getData( model ) ).to.equal( '<p>a[<$text bold="true">bcfo]obar</$text>xyz</p>' );
 			expect( getData( model ) ).to.equal( '<p>a[<$text bold="true">bcfo]obar</$text>xyz</p>' );