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

Commit

Permalink
Fixed tests.
Browse files Browse the repository at this point in the history
  • Loading branch information
ma2ciek committed Jan 4, 2018
1 parent b42c0a1 commit d28aee5
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions tests/model/writer.js
Original file line number Diff line number Diff line change
Expand Up @@ -1454,6 +1454,7 @@ describe( 'Writer', () => {
} );

it( 'should create minimal number of remove deltas, each with only one operation', () => {
batch = new Batch();
remove( range );

expect( batch.deltas.length ).to.equal( 2 );
Expand All @@ -1462,6 +1463,7 @@ describe( 'Writer', () => {
} );

it( 'should use RemoveOperation', () => {
batch = new Batch();
remove( div );

expect( batch.deltas[ 0 ].operations[ 0 ].type ).to.equal( 'remove' );
Expand Down Expand Up @@ -1503,6 +1505,7 @@ describe( 'Writer', () => {
} );

it( 'should create minimal number of remove deltas, each with only one operation', () => {
batch = new Batch();
remove( range );

expect( batch.deltas.length ).to.equal( 2 );
Expand All @@ -1511,6 +1514,7 @@ describe( 'Writer', () => {
} );

it( 'should use DetachOperation', () => {
batch = new Batch();
remove( div );

expect( batch.deltas[ 0 ].operations[ 0 ].type ).to.equal( 'detach' );
Expand Down

0 comments on commit d28aee5

Please sign in to comment.