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

Commit

Permalink
Fixed failing test.
Browse files Browse the repository at this point in the history
  • Loading branch information
ma2ciek committed Jun 25, 2019
1 parent da5670a commit 2b53dce
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions tests/dev-utils/enableenginedebug.js
Original file line number Diff line number Diff line change
Expand Up @@ -558,6 +558,9 @@ describe( 'debug tools', () => {
const view = editor.editing.view;
const viewDoc = view.document;

// Reset model document version to ensure it will start at 0.
model.document.version = 0;

model.change( () => {
const insert = new InsertOperation( ModelPosition._createAt( modelRoot, 0 ), new ModelText( 'foobar' ), 0 );
model.applyOperation( insert );
Expand Down

0 comments on commit 2b53dce

Please sign in to comment.