浏览代码

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', () => {