Răsfoiți Sursa

Update the mention editing tests.

Maciej Gołaszewski 6 ani în urmă
părinte
comite
1e50564aac
1 a modificat fișierele cu 3 adăugiri și 3 ștergeri
  1. 3 3
      packages/ckeditor5-mention/tests/mentionediting.js

+ 3 - 3
packages/ckeditor5-mention/tests/mentionediting.js

@@ -134,11 +134,11 @@ describe( 'MentionEditing', () => {
 		} );
 
 		it( 'should not convert empty mentions', () => {
-			editor.setData( '<p><span class="mention" data-mention="John"></span></p>' );
+			editor.setData( '<p>foo<span class="mention" data-mention="John"></span></p>' );
 
-			expect( getModelData( model, { withoutSelection: true } ) ).to.equal( '<paragraph></paragraph>' );
+			expect( getModelData( model, { withoutSelection: true } ) ).to.equal( '<paragraph>foo</paragraph>' );
 
-			const expectedView = '<p></p>';
+			const expectedView = '<p>foo</p>';
 
 			expect( editor.getData() ).to.equal( expectedView );
 			expect( getViewData( editor.editing.view, { withoutSelection: true } ) ).to.equal( expectedView );