imagetextalternativeediting.js 1.0 KB

123456789101112131415161718192021222324252627282930
  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 VirtualTestEditor from '@ckeditor/ckeditor5-core/tests/_utils/virtualtesteditor';
  6. import ImageTextAlternativeEditing from '../../src/imagetextalternative/imagetextalternativeediting';
  7. import ImageTextAlternativeCommand from '../../src/imagetextalternative/imagetextalternativecommand';
  8. describe( 'ImageTextAlternativeEditing', () => {
  9. let editor;
  10. beforeEach( () => {
  11. return VirtualTestEditor
  12. .create( {
  13. plugins: [ ImageTextAlternativeEditing ]
  14. } )
  15. .then( newEditor => {
  16. editor = newEditor;
  17. } );
  18. } );
  19. it( 'should have pluginName', () => {
  20. expect( ImageTextAlternativeEditing.pluginName ).to.equal( 'ImageTextAlternativeEditing' );
  21. } );
  22. it( 'should register ImageAlternativeTextCommand', () => {
  23. expect( editor.commands.get( 'imageTextAlternative' ) ).to.be.instanceOf( ImageTextAlternativeCommand );
  24. } );
  25. } );