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

Commit

Permalink
Simplified the test.
Browse files Browse the repository at this point in the history
  • Loading branch information
oskarwrobel committed Feb 7, 2019
1 parent 9bbe891 commit df79eb7
Showing 1 changed file with 3 additions and 6 deletions.
9 changes: 3 additions & 6 deletions tests/model/differ.js
Original file line number Diff line number Diff line change
Expand Up @@ -646,13 +646,10 @@ describe( 'Differ', () => {
const sourcePosition = new Position( root, [ 0 ] );
const targetPosition = new Position( root, [ 2 ] );

// Add two more elements to the root, now there are 4 paragraphs.
root._appendChild( [
new Element( 'paragraph', null, [
new Text( 'x' )
] ),
new Element( 'paragraph', null, [
new Text( 'y' )
] )
new Element( 'paragraph' ),
new Element( 'paragraph' )
] );

model.change( () => {
Expand Down

0 comments on commit df79eb7

Please sign in to comment.