Skip to content
This repository has been archived by the owner on Jun 26, 2020. It is now read-only.

Commit

Permalink
Added error contexts.
Browse files Browse the repository at this point in the history
  • Loading branch information
ma2ciek committed Jun 27, 2019
1 parent d8f497f commit 25ed78e
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
3 changes: 2 additions & 1 deletion tests/_utils/classictesteditor.js
Original file line number Diff line number Diff line change
Expand Up @@ -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
);
}

Expand Down
2 changes: 1 addition & 1 deletion tests/plugincollection.js
Original file line number Diff line number Diff line change
Expand Up @@ -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:/ );
Expand Down

0 comments on commit 25ed78e

Please sign in to comment.