8
0
Просмотр исходного кода

Fixed default block test case to make it clearer.

Szymon Kupś 9 лет назад
Родитель
Сommit
2619c3a3f3
1 измененных файлов с 2 добавлено и 2 удалено
  1. 2 2
      packages/ckeditor5-enter/tests/entercommand.js

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

@@ -44,11 +44,11 @@ describe( 'EnterCommand', () => {
 
 	it( 'uses paragraph as default block', () => {
 		schema.registerItem( 'paragraph', '$block' );
-		setData( doc, '<p>foo<selection /></p>' );
+		setData( doc, '<h>foo<selection /></h>' );
 
 		editor.execute( 'enter' );
 
-		expect( getData( doc, { withoutSelection: true } ) ).to.equal( '<p>foo</p><paragraph></paragraph>' );
+		expect( getData( doc, { withoutSelection: true } ) ).to.equal( '<h>foo</h><paragraph></paragraph>' );
 	} );
 } );