浏览代码

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 年之前
父节点
当前提交
64ac158379
共有 1 个文件被更改,包括 0 次插入10 次删除
  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 SpecialCharacters from '../src/specialcharacters';
 import SpecialCharactersUI from '../src/specialcharactersui';
 import SpecialCharactersUI from '../src/specialcharactersui';
 import SpecialCharactersEditing from '../src/specialcharactersediting';
 import SpecialCharactersEditing from '../src/specialcharactersediting';
-import { expectToThrowCKEditorError } from '@ckeditor/ckeditor5-utils/tests/_utils/utils';
 
 
 describe( 'SpecialCharacters', () => {
 describe( 'SpecialCharacters', () => {
 	let plugin;
 	let plugin;
@@ -37,15 +36,6 @@ describe( 'SpecialCharacters', () => {
 			expect( plugin._characters.has( 'arrow left' ) ).to.equal( true );
 			expect( plugin._characters.has( 'arrow left' ) ).to.equal( true );
 			expect( plugin._characters.has( 'arrow right' ) ).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()', () => {
 	describe( 'getGroups()', () => {