Browse Source

Internal: Align code to the API changes (selection post-fixer).

Maciej Gołaszewski 7 years ago
parent
commit
6513bb2b6c
1 changed files with 8 additions and 4 deletions
  1. 8 4
      packages/ckeditor5-enter/tests/shiftentercommand.js

+ 8 - 4
packages/ckeditor5-enter/tests/shiftentercommand.js

@@ -327,15 +327,19 @@ describe( 'ShiftEnterCommand', () => {
 		} );
 
 		it( 'should be disabled for non-collapsed selection which starts in element inside a block limit element', () => {
-			setData( model, '<blockLimit><p>F[oo.</p></blockLimit><p>B]ar.</p>' );
+			model.enqueueChange( 'transparent', () => {
+				setData( model, '<blockLimit><p>F[oo.</p></blockLimit><p>B]ar.</p>' );
 
-			expect( command.isEnabled ).to.equal( false );
+				expect( command.isEnabled ).to.equal( false );
+			} );
 		} );
 
 		it( 'should be disabled for non-collapsed selection which ends in element inside a block limit element', () => {
-			setData( model, '<p>Fo[o.</p><blockLimit><p>Bar].</p></blockLimit>' );
+			model.enqueueChange( 'transparent', () => {
+				setData( model, '<p>Fo[o.</p><blockLimit><p>Bar].</p></blockLimit>' );
 
-			expect( command.isEnabled ).to.equal( false );
+				expect( command.isEnabled ).to.equal( false );
+			} );
 		} );
 
 		it( 'should be disabled for multi-ranges selection (1)', () => {