Przeglądaj źródła

Fix typo in markercommand-* to mentioncommand-*.

Maciej Gołaszewski 6 lat temu
rodzic
commit
8cc8ac92db

+ 4 - 4
packages/ckeditor5-mention/src/mentioncommand.js

@@ -95,9 +95,9 @@ export default class MentionCommand extends Command {
 			 *
 			 * See {@link module:mention/mention~MentionConfig}.
 			 *
-			 * @error markercommand-incorrect-marker
+			 * @error mentioncommand-incorrect-marker
 			 */
-			throw new CKEditorError( 'markercommand-incorrect-marker: The marker must be a single character.' );
+			throw new CKEditorError( 'mentioncommand-incorrect-marker: The marker must be a single character.' );
 		}
 
 		if ( mentionID.charAt( 0 ) != options.marker ) {
@@ -124,9 +124,9 @@ export default class MentionCommand extends Command {
 			 *
 			 * See {@link module:mention/mention~MentionConfig}.
 			 *
-			 * @error markercommand-incorrect-id
+			 * @error mentioncommand-incorrect-id
 			 */
-			throw new CKEditorError( 'markercommand-incorrect-id: The item id must start with the marker character.' );
+			throw new CKEditorError( 'mentioncommand-incorrect-id: The item id must start with the marker character.' );
 		}
 
 		model.change( writer => {

+ 2 - 2
packages/ckeditor5-mention/tests/mentioncommand.js

@@ -145,7 +145,7 @@ describe( 'MentionCommand', () => {
 			];
 
 			for ( const options of testCases ) {
-				expect( () => command.execute( options ) ).to.throw( CKEditorError, /markercommand-incorrect-marker/ );
+				expect( () => command.execute( options ) ).to.throw( CKEditorError, /mentioncommand-incorrect-marker/ );
 			}
 		} );
 
@@ -159,7 +159,7 @@ describe( 'MentionCommand', () => {
 			];
 
 			for ( const options of testCases ) {
-				expect( () => command.execute( options ) ).to.throw( CKEditorError, /markercommand-incorrect-id/ );
+				expect( () => command.execute( options ) ).to.throw( CKEditorError, /mentioncommand-incorrect-id/ );
 			}
 		} );
 	} );