Parcourir la source

Add test for MentionUI.pluginName.

Maciej Gołaszewski il y a 6 ans
Parent
commit
bd9c12eef7
1 fichiers modifiés avec 6 ajouts et 0 suppressions
  1. 6 0
      packages/ckeditor5-mention/tests/mentionui.js

+ 6 - 0
packages/ckeditor5-mention/tests/mentionui.js

@@ -55,6 +55,12 @@ describe( 'BalloonToolbar', () => {
 		expect( mentionUI ).to.instanceOf( MentionUI );
 	} );
 
+	describe( 'pluginName', () => {
+		it( 'should return plugin by its name', () => {
+			expect( editor.plugins.get( 'MentionUI' ) ).to.equal( mentionUI );
+		} );
+	} );
+
 	describe( 'child views', () => {
 		describe( 'panelView', () => {
 			it( 'should be added to the ui.view.body collection', () => {