| 123456789101112131415161718192021222324252627282930313233343536373839 |
- /**
- * @license Copyright (c) 2003-2017, CKSource - Frederico Knabben. All rights reserved.
- * For licensing, see LICENSE.md.
- */
- /* global window */
- import ClassicTestEditor from 'ckeditor5-core/tests/_utils/classictesteditor';
- import Image from 'ckeditor5-image/src/image';
- import ImageEngine from 'ckeditor5-image/src/imageengine';
- import Widget from 'ckeditor5-image/src/widget/widget';
- describe( 'Image', () => {
- let editor;
- beforeEach( () => {
- const editorElement = window.document.createElement( 'div' );
- window.document.body.appendChild( editorElement );
- return ClassicTestEditor.create( editorElement, {
- plugins: [ Image ]
- } )
- .then( newEditor => {
- editor = newEditor;
- } );
- } );
- it( 'should be loaded', () => {
- expect( editor.plugins.get( Image ) ).to.instanceOf( Image );
- } );
- it( 'should load ImageEngine feature', () => {
- expect( editor.plugins.get( ImageEngine ) ).to.instanceOf( ImageEngine );
- } );
- it( 'should load Widget feature', () => {
- expect( editor.plugins.get( Widget ) ).to.instanceOf( Widget );
- } );
- } );
|