Procházet zdrojové kódy

Changed invalid class name in error message.

Oskar Wróbel před 6 roky
rodič
revize
b44639a613

+ 1 - 1
packages/ckeditor5-engine/src/model/markercollection.js

@@ -167,7 +167,7 @@ export default class MarkerCollection {
 		const marker = this._markers.get( markerName );
 
 		if ( !marker ) {
-			throw new CKEditorError( 'markers-refresh-marker-not-exists: Marker with provided name does not exists.' );
+			throw new CKEditorError( 'markercollection-refresh-marker-not-exists: Marker with provided name does not exists.' );
 		}
 
 		const range = marker.getRange();

+ 1 - 1
packages/ckeditor5-engine/tests/model/markercollection.js

@@ -209,7 +209,7 @@ describe( 'MarkerCollection', () => {
 		it( 'should throw if marker does not exist', () => {
 			expect( () => {
 				markers._refresh( 'name' );
-			} ).to.throw( CKEditorError, 'markers-refresh-marker-not-exists: Marker with provided name does not exists.' );
+			} ).to.throw( CKEditorError, 'markercollection-refresh-marker-not-exists: Marker with provided name does not exists.' );
 		} );
 	} );