Browse Source

Reorganize mention editing tests.

Maciej Gołaszewski 6 years ago
parent
commit
3b14356318
1 changed files with 13 additions and 2 deletions
  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' ] } );