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 Oct 24, 2018
1 parent 0fd5b26 commit c478a3e
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions tests/model/writer.js
Original file line number Diff line number Diff line change
Expand Up @@ -310,12 +310,13 @@ describe( 'Writer', () => {

expect( Array.from( model.markers ).length ).to.equal( 1 );

const range = model.markers.get( 'marker' ).getRange();
const modelMarker = model.markers.get( 'marker' );
const range = modelMarker.getRange();
expect( range.root ).to.equal( root );
expect( range.start.path ).to.deep.equal( [ 2, 1 ] );
expect( range.end.path ).to.deep.equal( [ 2, 5 ] );
expect( range.usingOperation ).to.equal( true );
expect( range.affectsData ).to.equal( true );
expect( modelMarker.managedUsingOperations ).to.be.true;
expect( modelMarker.affectsData ).to.be.true;
} );

it( 'should throw when trying to use detached writer', () => {
Expand Down

0 comments on commit c478a3e

Please sign in to comment.