imagetextalternativeengine.js 837 B

12345678910111213141516171819202122232425
  1. /**
  2. * @license Copyright (c) 2003-2017, 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 ImageTextAlternativeEngine from '../../src/imagetextalternative/imagetextalternativeengine';
  7. import ImageTextAlternativeCommand from '../../src/imagetextalternative/imagetextalternativecommand';
  8. describe( 'ImageTextAlternativeEngine', () => {
  9. let editor;
  10. beforeEach( () => {
  11. return VirtualTestEditor
  12. .create( {
  13. plugins: [ ImageTextAlternativeEngine ]
  14. } )
  15. .then( newEditor => {
  16. editor = newEditor;
  17. } );
  18. } );
  19. it( 'should register ImageAlteranteTextCommand', () => {
  20. expect( editor.commands.get( 'imageTextAlternative' ) ).to.be.instanceOf( ImageTextAlternativeCommand );
  21. } );
  22. } );