Explorar o código

Update tests with `CKEditorError.isCKEditorError`.

Maksymilian Barnaś %!s(int64=9) %!d(string=hai) anos
pai
achega
7672f8f50f
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  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' );
 			} )
 			.catch( ( err ) => {
-				expect( err ).to.be.an.instanceof( CKEditorError );
+				expect( CKEditorError.isCKEditorError( err ) ).to.be.true;
 				expect( err.message ).to.match( /^plugincollection-instance/ );
 
 				sinon.assert.calledOnce( logSpy );