Kaynağa Gözat

Revert "Merge pull request #13 from ckeditor/t/12"

This reverts commit f962dbbae75a2dd7b4fdfda54b423ac09b9d6be2, reversing
changes made to 27d9419fb6a2e9b15ab53f0183273ce0bad8238b.
Maksymilian Barnaś 9 yıl önce
ebeveyn
işleme
e0eaf2898a

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

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

+ 1 - 1
packages/ckeditor5-core/tests/plugincollection.js

@@ -256,7 +256,7 @@ describe( 'load', () => {
 				throw new Error( 'Test error: this promise should not be resolved successfully' );
 			} )
 			.catch( ( err ) => {
-				expect( CKEditorError.isCKEditorError( err ) ).to.be.true;
+				expect( err ).to.be.an.instanceof( CKEditorError );
 				expect( err.message ).to.match( /^plugincollection-instance/ );
 
 				sinon.assert.calledOnce( logSpy );