8
0

imagelaternatetextengine.js 808 B

123456789101112131415161718192021222324
  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 ImageAlternateTextEngine from '../../src/imagealternatetext/imagealternatetextengine';
  7. import ImageAlternateTextCommand from '../../src/imagealternatetext/imagealternatetextcommand';
  8. describe( 'ImageAlternateTextEngine', () => {
  9. let editor;
  10. beforeEach( () => {
  11. return VirtualTestEditor.create( {
  12. plugins: [ ImageAlternateTextEngine ]
  13. } )
  14. .then( newEditor => {
  15. editor = newEditor;
  16. } );
  17. } );
  18. it( 'should register ImageAlteranteTextCommand', () => {
  19. expect( editor.commands.get( 'imageAlternateText' ) ).to.be.instanceOf( ImageAlternateTextCommand );
  20. } );
  21. } );