Przeglądaj źródła

Added error contexts.

Maciej Bukowski 6 lat temu
rodzic
commit
2eeae72457

+ 2 - 1
packages/ckeditor5-core/tests/_utils/classictesteditor.js

@@ -79,7 +79,8 @@ export default class ClassicTestEditor extends Editor {
 							// Documented in core/editor/editorconfig.jsdoc.
 							throw new CKEditorError(
 								'editor-create-initial-data: ' +
-								'The config.initialData option cannot be used together with initial data passed in Editor.create().'
+								'The config.initialData option cannot be used together with initial data passed in Editor.create().',
+								null
 							);
 						}
 

+ 1 - 1
packages/ckeditor5-core/tests/plugincollection.js

@@ -269,7 +269,7 @@ describe( 'PluginCollection', () => {
 					throw new Error( 'Test error: this promise should not be resolved successfully' );
 				} )
 				.catch( err => {
-					assertCKEditorError( err, /^plugincollection-plugin-not-found/, null );
+					assertCKEditorError( err, /^plugincollection-plugin-not-found/, editor );
 
 					sinon.assert.calledOnce( logSpy );
 					expect( logSpy.args[ 0 ][ 0 ] ).to.match( /^plugincollection-plugin-not-found:/ );