From d28aee562d48f40dcb6d2ddc60fd1a18099b9f27 Mon Sep 17 00:00:00 2001 From: Maciej Bukowski Date: Thu, 4 Jan 2018 12:22:04 +0100 Subject: [PATCH] Fixed tests. --- tests/model/writer.js | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/tests/model/writer.js b/tests/model/writer.js index 218685654..d57ae9d5c 100644 --- a/tests/model/writer.js +++ b/tests/model/writer.js @@ -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 ); @@ -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' ); @@ -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 ); @@ -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' );