Browse Source

Internal: Error should not be thrown on title duplication. It will be fairly easy to get title duplicate if you want to put same character in two tabs for convenience.

Marek Lewandowski 6 years ago
parent
commit
64ac158379
1 changed files with 0 additions and 10 deletions
  1. 0 10
      packages/ckeditor5-special-characters/tests/specialcharacters.js

+ 0 - 10
packages/ckeditor5-special-characters/tests/specialcharacters.js

@@ -6,7 +6,6 @@
 import SpecialCharacters from '../src/specialcharacters';
 import SpecialCharactersUI from '../src/specialcharactersui';
 import SpecialCharactersEditing from '../src/specialcharactersediting';
-import { expectToThrowCKEditorError } from '@ckeditor/ckeditor5-utils/tests/_utils/utils';
 
 describe( 'SpecialCharacters', () => {
 	let plugin;
@@ -37,15 +36,6 @@ describe( 'SpecialCharacters', () => {
 			expect( plugin._characters.has( 'arrow left' ) ).to.equal( true );
 			expect( plugin._characters.has( 'arrow right' ) ).to.equal( true );
 		} );
-
-		it( 'throw an error when a title is not a unique value', () => {
-			expectToThrowCKEditorError( () => {
-				plugin.addItems( 'Arrows', [
-					{ title: 'arrow left', character: '←' },
-					{ title: 'arrow left', character: '←' }
-				] );
-			}, /^specialcharacters-duplicated-character-name/ )
-		} );
 	} );
 
 	describe( 'getGroups()', () => {