|
@@ -4,9 +4,11 @@
|
|
|
*/
|
|
*/
|
|
|
|
|
|
|
|
import ClassicTestEditor from '@ckeditor/ckeditor5-core/tests/_utils/classictesteditor';
|
|
import ClassicTestEditor from '@ckeditor/ckeditor5-core/tests/_utils/classictesteditor';
|
|
|
-import Mention from '../src/mention';
|
|
|
|
|
import global from '@ckeditor/ckeditor5-utils/src/dom/global';
|
|
import global from '@ckeditor/ckeditor5-utils/src/dom/global';
|
|
|
|
|
|
|
|
|
|
+import Mention from '../src/mention';
|
|
|
|
|
+import MentionEditing from '../src/mentionediting';
|
|
|
|
|
+
|
|
|
describe( 'Mention', () => {
|
|
describe( 'Mention', () => {
|
|
|
let editorElement, editor;
|
|
let editorElement, editor;
|
|
|
|
|
|
|
@@ -36,4 +38,8 @@ describe( 'Mention', () => {
|
|
|
it( 'has proper name', () => {
|
|
it( 'has proper name', () => {
|
|
|
expect( Mention.pluginName ).to.equal( 'Mention' );
|
|
expect( Mention.pluginName ).to.equal( 'Mention' );
|
|
|
} );
|
|
} );
|
|
|
|
|
+
|
|
|
|
|
+ it( 'should load MentionEditing plugin', () => {
|
|
|
|
|
+ expect( editor.plugins.get( MentionEditing ) ).to.instanceOf( MentionEditing );
|
|
|
|
|
+ } );
|
|
|
} );
|
|
} );
|