Skip to content

Commit

Permalink
Fix tests
Browse files Browse the repository at this point in the history
  • Loading branch information
filipsobol committed Jun 4, 2024
1 parent 78acde4 commit aea2ae0
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions src/ckeditor/ckeditor.component.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -362,8 +362,6 @@ describe( 'CKEditorComponent', () => {
expect( spy ).toHaveBeenCalledWith( component.editorInstance );
} );

// TODO: https://github.com/ckeditor/ckeditor5-angular/issues/420
/*
it( 'should fire the `error` event when an error occurs and the `ready` event afterwards #2', async () => {
// Create a second component to test whether the `error` event will be fired only
// on the proper component.
Expand Down Expand Up @@ -410,11 +408,11 @@ describe( 'CKEditorComponent', () => {
expect( errorSpy ).toHaveBeenCalledTimes( 1 );
expect( readySpy ).toHaveBeenCalledTimes( 1 );

expect( error2Spy ).toHaveBeenCalledTimes( 0 );
// TODO: https://github.com/ckeditor/ckeditor5-angular/issues/420
// expect( error2Spy ).toHaveBeenCalledTimes( 0 );

fixture2.destroy();
} );
*/

it( 'should update the editor once the editor is ready', async () => {
const contextWatchdog = new AngularEditor.ContextWatchdog( AngularEditor.Context );
Expand Down

0 comments on commit aea2ae0

Please sign in to comment.