Browse Source

Add test for MentionUI.pluginName.

Maciej Gołaszewski 6 years ago
parent
commit
bd9c12eef7
1 changed files with 6 additions and 0 deletions
  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', () => {