|
@@ -3,36 +3,15 @@
|
|
|
* For licensing, see LICENSE.md.
|
|
* For licensing, see LICENSE.md.
|
|
|
*/
|
|
*/
|
|
|
|
|
|
|
|
-/* global document */
|
|
|
|
|
-
|
|
|
|
|
import Font from './../src/font';
|
|
import Font from './../src/font';
|
|
|
import FontSize from './../src/fontsize';
|
|
import FontSize from './../src/fontsize';
|
|
|
|
|
|
|
|
-import ClassicTestEditor from '@ckeditor/ckeditor5-core/tests/_utils/classictesteditor';
|
|
|
|
|
-
|
|
|
|
|
describe( 'Font', () => {
|
|
describe( 'Font', () => {
|
|
|
- let editor, element;
|
|
|
|
|
-
|
|
|
|
|
- beforeEach( () => {
|
|
|
|
|
- element = document.createElement( 'div' );
|
|
|
|
|
- document.body.appendChild( element );
|
|
|
|
|
-
|
|
|
|
|
- return ClassicTestEditor
|
|
|
|
|
- .create( element, {
|
|
|
|
|
- plugins: [ Font ]
|
|
|
|
|
- } )
|
|
|
|
|
- .then( newEditor => {
|
|
|
|
|
- editor = newEditor;
|
|
|
|
|
- } );
|
|
|
|
|
- } );
|
|
|
|
|
-
|
|
|
|
|
- afterEach( () => {
|
|
|
|
|
- element.remove();
|
|
|
|
|
-
|
|
|
|
|
- return editor.destroy();
|
|
|
|
|
- } );
|
|
|
|
|
-
|
|
|
|
|
it( 'requires FontSize', () => {
|
|
it( 'requires FontSize', () => {
|
|
|
expect( Font.requires ).to.deep.equal( [ FontSize ] );
|
|
expect( Font.requires ).to.deep.equal( [ FontSize ] );
|
|
|
} );
|
|
} );
|
|
|
|
|
+
|
|
|
|
|
+ it( 'defines plugin name', () => {
|
|
|
|
|
+ expect( Font.pluginName ).to.equal( 'Font' );
|
|
|
|
|
+ } );
|
|
|
} );
|
|
} );
|