瀏覽代碼

Reorganize mention editing tests.

Maciej Gołaszewski 6 年之前
父節點
當前提交
3b14356318
共有 1 個文件被更改,包括 13 次插入2 次删除
  1. 13 2
      packages/ckeditor5-mention/tests/mentionediting.js

+ 13 - 2
packages/ckeditor5-mention/tests/mentionediting.js

@@ -145,7 +145,7 @@ describe( 'MentionEditing', () => {
 		} );
 	} );
 
-	describe( 'selection post fixer', () => {
+	describe( 'selection post-fixer', () => {
 		beforeEach( () => {
 			return createTestEditor()
 				.then( newEditor => {
@@ -182,7 +182,7 @@ describe( 'MentionEditing', () => {
 		} );
 	} );
 
-	describe( 'removing partial mention post fixer', () => {
+	describe( 'removing partial mention post-fixer', () => {
 		beforeEach( () => {
 			return createTestEditor()
 				.then( newEditor => {
@@ -285,6 +285,17 @@ describe( 'MentionEditing', () => {
 
 			expect( editor.getData() ).to.equal( '<p>foo <span class="mention" data-mention="John">@John</span>bar</p>' );
 		} );
+	} );
+
+	describe( 'extend attribute on mention post-fixer', () => {
+		beforeEach( () => {
+			return createTestEditor()
+				.then( newEditor => {
+					editor = newEditor;
+					model = editor.model;
+					doc = model.document;
+				} );
+		} );
 
 		it( 'should set attribute on whole mention when formatting part of a mention (beginning formatted)', () => {
 			model.schema.extend( '$text', { allowAttributes: [ 'bold' ] } );