Browse Source

Update tests with `throwCKEditorError` check.

Maksymilian Barnaś 9 years ago
parent
commit
0384c58d9a
1 changed files with 1 additions and 2 deletions
  1. 1 2
      packages/ckeditor5-core/tests/editor/editor-base.js

+ 1 - 2
packages/ckeditor5-core/tests/editor/editor-base.js

@@ -8,7 +8,6 @@
 import Editor from '/ckeditor5/core/editor/editor.js';
 import Editor from '/ckeditor5/core/editor/editor.js';
 import Command from '/ckeditor5/core/command/command.js';
 import Command from '/ckeditor5/core/command/command.js';
 import Locale from '/ckeditor5/utils/locale.js';
 import Locale from '/ckeditor5/utils/locale.js';
-import CKEditorError from '/ckeditor5/utils/ckeditorerror.js';
 
 
 describe( 'Editor', () => {
 describe( 'Editor', () => {
 	describe( 'locale', () => {
 	describe( 'locale', () => {
@@ -70,7 +69,7 @@ describe( 'Editor', () => {
 
 
 			expect( () => {
 			expect( () => {
 				editor.execute( 'command' );
 				editor.execute( 'command' );
-			} ).to.throw( CKEditorError, /^editor-command-not-found:/ );
+			} ).to.throwCKEditorError( /^editor-command-not-found:/ );
 		} );
 		} );
 	} );
 	} );
 } );
 } );