Skip to content
This repository has been archived by the owner on Jun 26, 2020. It is now read-only.

Commit

Permalink
Tests: Changed some tests after OT refactor.
Browse files Browse the repository at this point in the history
  • Loading branch information
scofalik committed Jul 24, 2018
1 parent ab613ba commit fcdc6fd
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tests/attributecommand.js
Original file line number Diff line number Diff line change
Expand Up @@ -284,9 +284,9 @@ describe( 'AttributeCommand', () => {
setData( model, '<p>a[bc<$text bold="true">fo]obar</$text>xyz</p>' );

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( '<p>a[<$text bold="true">bcfo]obar</$text>xyz</p>' );
Expand Down

0 comments on commit fcdc6fd

Please sign in to comment.