8
0

imagetextalternativeediting.js 844 B

1234567891011121314151617181920212223242526
  1. /**
  2. * @license Copyright (c) 2003-2018, CKSource - Frederico Knabben. All rights reserved.
  3. * For licensing, see LICENSE.md.
  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 register ImageAlternativeTextCommand', () => {
  20. expect( editor.commands.get( 'imageTextAlternative' ) ).to.be.instanceOf( ImageTextAlternativeCommand );
  21. } );
  22. } );