From fcdc6fd667dbdaecc50145631397ccce7b4ace17 Mon Sep 17 00:00:00 2001 From: Szymon Cofalik Date: Tue, 24 Jul 2018 16:55:24 +0200 Subject: [PATCH] Tests: Changed some tests after OT refactor. --- tests/attributecommand.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/attributecommand.js b/tests/attributecommand.js index f455f23..d4253b7 100644 --- a/tests/attributecommand.js +++ b/tests/attributecommand.js @@ -284,9 +284,9 @@ describe( 'AttributeCommand', () => { setData( model, '

a[bc<$text bold="true">fo]obarxyz

' ); 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 ); } ); expect( getData( model ) ).to.equal( '

a[<$text bold="true">bcfo]obarxyz

' );