Selaa lähdekoodia

Allowed to use text inside root in test.

Oskar Wrobel 9 vuotta sitten
vanhempi
commit
80e0d4fafa
1 muutettua tiedostoa jossa 2 lisäystä ja 1 poistoa
  1. 2 1
      packages/ckeditor5-enter/tests/entercommand.js

+ 2 - 1
packages/ckeditor5-enter/tests/entercommand.js

@@ -25,6 +25,7 @@ beforeEach( () => {
 			schema.registerItem( 'img', '$inline' );
 			schema.registerItem( 'p', '$block' );
 			schema.registerItem( 'h', '$block' );
+			schema.allow( { name: '$text', inside: '$root' } );
 		} );
 } );
 
@@ -180,7 +181,7 @@ describe( 'enterBlock', () => {
 
 			enterBlock( doc.batch(), doc.selection, { defaultBlockName: 'p' } );
 
-			expect( getData( doc ).to.equal( '<p>[]</p>' );
+			expect( getData( doc ) ).to.equal( '<p>[]</p>' );
 		} );
 
 		it( 'uses composer.deleteContents', () => {