removeformatediting.js 801 B

12345678910111213141516171819202122232425262728
  1. /**
  2. * @license Copyright (c) 2003-2020, CKSource - Frederico Knabben. All rights reserved.
  3. * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
  4. */
  5. import ModelTestEditor from '@ckeditor/ckeditor5-core/tests/_utils/modeltesteditor';
  6. import RemoveFormatCommand from '../src/removeformatcommand';
  7. import RemoveFormatEditing from '../src/removeformatediting';
  8. describe( 'RemoveFormat', () => {
  9. let editor;
  10. beforeEach( () => {
  11. return ModelTestEditor.create( {
  12. plugins: [ RemoveFormatEditing ]
  13. } ).then( newEditor => {
  14. editor = newEditor;
  15. } );
  16. } );
  17. afterEach( () => {
  18. return editor.destroy();
  19. } );
  20. it( 'should register removeFormat command', () => {
  21. expect( editor.commands.get( 'removeFormat' ) ).to.instanceof( RemoveFormatCommand );
  22. } );
  23. } );