| 1234567891011121314151617181920212223242526272829303132333435 |
- /**
- * @license Copyright (c) 2003-2020, CKSource - Frederico Knabben. All rights reserved.
- * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
- */
- import FontSizeCommand from '../../src/fontsize/fontsizecommand';
- import FontCommand from '../../src/fontcommand';
- import ModelTestEditor from '@ckeditor/ckeditor5-core/tests/_utils/modeltesteditor';
- describe( 'FontSizeCommand', () => {
- let editor, command;
- beforeEach( () => {
- return ModelTestEditor.create()
- .then( newEditor => {
- editor = newEditor;
- command = new FontSizeCommand( editor );
- } );
- } );
- afterEach( () => {
- editor.destroy();
- } );
- it( 'is a FontCommand', () => {
- expect( FontSizeCommand.prototype ).to.be.instanceOf( FontCommand );
- expect( command ).to.be.instanceOf( FontCommand );
- } );
- it( 'operates on fontSize attribute', () => {
- expect( command ).to.have.property( 'attributeKey', 'fontSize' );
- } );
- } );
|