Skip to content

Commit

Permalink
Fix leaking editor in ui tests
Browse files Browse the repository at this point in the history
  • Loading branch information
Mati365 committed Sep 23, 2024
1 parent 1e93003 commit d5f3816
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/ckeditor5-ui/tests/editorui/editorui.js
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ describe( 'EditorUI', () => {
afterEach( async () => {
ui.destroy();

if ( editor.state === 'initializing' ) {
if ( editor.state !== 'destroyed' ) {
editor.fire( 'ready' );
await editor.destroy();
}
Expand Down

0 comments on commit d5f3816

Please sign in to comment.