|
|
@@ -9,7 +9,6 @@ import testUtils from '../tests/_utils/utils';
|
|
|
import Editor from '../src/editor/editor';
|
|
|
import PluginCollection from '../src/plugincollection';
|
|
|
import Plugin from '../src/plugin';
|
|
|
-import CKEditorError from '@ckeditor/ckeditor5-utils/src/ckeditorerror';
|
|
|
import log from '@ckeditor/ckeditor5-utils/src/log';
|
|
|
import { expectToThrowCKEditorError, assertCKEditorError } from '@ckeditor/ckeditor5-utils/tests/_utils/utils';
|
|
|
|
|
|
@@ -270,8 +269,7 @@ describe( 'PluginCollection', () => {
|
|
|
throw new Error( 'Test error: this promise should not be resolved successfully' );
|
|
|
} )
|
|
|
.catch( err => {
|
|
|
- expect( err ).to.be.an.instanceof( CKEditorError );
|
|
|
- expect( err.message ).to.match( /^plugincollection-plugin-not-found/ );
|
|
|
+ assertCKEditorError( err, /^plugincollection-plugin-not-found/, null );
|
|
|
|
|
|
sinon.assert.calledOnce( logSpy );
|
|
|
expect( logSpy.args[ 0 ][ 0 ] ).to.match( /^plugincollection-plugin-not-found:/ );
|