8
0
فهرست منبع

Update tests with `CKEditorError.isCKEditorError`.

Maksymilian Barnaś 9 سال پیش
والد
کامیت
7672f8f50f
1فایلهای تغییر یافته به همراه1 افزوده شده و 1 حذف شده
  1. 1 1
      packages/ckeditor5-core/tests/plugincollection.js

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