| 123456789101112131415161718192021222324 |
- /**
- * @license Copyright (c) 2003-2017, CKSource - Frederico Knabben. All rights reserved.
- * For licensing, see LICENSE.md.
- */
- import VirtualTestEditor from '@ckeditor/ckeditor5-core/tests/_utils/virtualtesteditor';
- import ImageAlternateTextEngine from '../../src/imagealternatetext/imagealternatetextengine';
- import ImageAlternateTextCommand from '../../src/imagealternatetext/imagealternatetextcommand';
- describe( 'ImageAlternateTextEngine', () => {
- let editor;
- beforeEach( () => {
- return VirtualTestEditor.create( {
- plugins: [ ImageAlternateTextEngine ]
- } )
- .then( newEditor => {
- editor = newEditor;
- } );
- } );
- it( 'should register ImageAlteranteTextCommand', () => {
- expect( editor.commands.get( 'imageAlternateText' ) ).to.be.instanceOf( ImageAlternateTextCommand );
- } );
- } );
|