Răsfoiți Sursa

Update tests with `CKEditorError.isCKEditorError`.

Maksymilian Barnaś 9 ani în urmă
părinte
comite
7672f8f50f
1 a modificat fișierele cu 1 adăugiri și 1 ștergeri
  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 );