Skip to content

Commit 07865bd

Browse files
committed
Fixed coverage in emojimention.
1 parent 3753cde commit 07865bd

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

packages/ckeditor5-emoji/tests/emojimention.js

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -615,7 +615,7 @@ describe( 'EmojiMention', () => {
615615
expect( queryEmoji( ' see' ) ).to.deep.equal( [] );
616616
} );
617617

618-
it( 'should return an empty array when the repository plugin is not loaded correctly', async () => {
618+
it( 'should return an empty array when the repository plugin is not available', async () => {
619619
testUtils.sinon.stub( console, 'warn' );
620620
fetchStub.rejects( 'Failed to load CDN.' );
621621

@@ -626,6 +626,8 @@ describe( 'EmojiMention', () => {
626626
plugins: [ EmojiMention, Paragraph, Essentials, Mention ]
627627
} );
628628

629+
editor.plugins.get( 'EmojiMention' )._isEmojiRepositoryAvailable = false;
630+
629631
const queryEmoji = editor.plugins.get( 'EmojiMention' )._queryEmojiCallbackFactory();
630632

631633
expect( queryEmoji( '' ) ).to.deep.equal( [] );

0 commit comments

Comments
 (0)