Переглянути джерело

Add test for MentionUI.pluginName.

Maciej Gołaszewski 6 роки тому
батько
коміт
bd9c12eef7
1 змінених файлів з 6 додано та 0 видалено
  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', () => {