Răsfoiți Sursa

Update tests with `CKEditorError.isCKEditorError`.

Maksymilian Barnaś 9 ani în urmă
părinte
comite
1966b82e02
1 a modificat fișierele cu 1 adăugiri și 1 ștergeri
  1. 1 1
      packages/ckeditor5-ui/tests/controller.js

+ 1 - 1
packages/ckeditor5-ui/tests/controller.js

@@ -50,7 +50,7 @@ describe( 'Controller', () => {
 					throw new Error( 'This should not be executed.' );
 					throw new Error( 'This should not be executed.' );
 				} )
 				} )
 				.catch( ( err ) => {
 				.catch( ( err ) => {
-					expect( err ).to.be.instanceof( CKEditorError );
+					expect( CKEditorError.isCKEditorError( err ) ).to.be.true;
 					expect( err.message ).to.match( /ui-controller-init-re/ );
 					expect( err.message ).to.match( /ui-controller-init-re/ );
 				} );
 				} );
 		} );
 		} );