Skip to content

Commit

Permalink
Fix a leaking test in mention plugin.
Browse files Browse the repository at this point in the history
  • Loading branch information
Dumluregn committed Jan 10, 2025
1 parent 01777f8 commit 14d34aa
Showing 1 changed file with 11 additions and 2 deletions.
13 changes: 11 additions & 2 deletions packages/ckeditor5-mention/tests/mentionui.js
Original file line number Diff line number Diff line change
Expand Up @@ -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();
} );
} );

Expand Down

0 comments on commit 14d34aa

Please sign in to comment.