From 14d34aa8240ffd0797acee70f361967d636ff253 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Dariusz=20Jarz=C4=99bski?= Date: Fri, 10 Jan 2025 16:12:59 +0100 Subject: [PATCH] Fix a leaking test in mention plugin. --- packages/ckeditor5-mention/tests/mentionui.js | 13 +++++++++++-- 1 file changed, 11 insertions(+), 2 deletions(-) diff --git a/packages/ckeditor5-mention/tests/mentionui.js b/packages/ckeditor5-mention/tests/mentionui.js index c8b527a83f5..649f5e02792 100644 --- a/packages/ckeditor5-mention/tests/mentionui.js +++ b/packages/ckeditor5-mention/tests/mentionui.js @@ -86,8 +86,17 @@ describe( 'MentionUI', () => { } ); } ); - it( 'should not throw if marker is longer then 1 character', () => { - expect( () => createClassicTestEditor( { feeds: [ { marker: '$$', feed: [ 'a' ] } ] } ) ).to.not.throw(); + it( 'should not throw if marker is longer then 1 character', done => { + expect( () => ClassicTestEditor + .create( editorElement, { + plugins: [ Paragraph, MentionEditing, MentionUI ], + mention: { feeds: [ { marker: '$$', feed: [ 'a' ] } ] } + } ).then( tempEditor => { + tempEditor.destroy(); + + done(); + } ) + ).to.not.throw(); } ); } );