File tree Expand file tree Collapse file tree 1 file changed +3
-1
lines changed
packages/ckeditor5-emoji/tests Expand file tree Collapse file tree 1 file changed +3
-1
lines changed Original file line number Diff line number Diff 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 ( [ ] ) ;
You can’t perform that action at this time.
0 commit comments