linkimageui.js 1016 B

1234567891011121314151617181920212223242526272829303132333435363738394041
  1. /**
  2. * @license Copyright (c) 2003-2020, CKSource - Frederico Knabben. All rights reserved.
  3. * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
  4. */
  5. /* globals document */
  6. import ClassicTestEditor from '@ckeditor/ckeditor5-core/tests/_utils/classictesteditor';
  7. import testUtils from '@ckeditor/ckeditor5-core/tests/_utils/utils';
  8. import LinkImageUI from '../src/linkimageui';
  9. describe( 'LinkImageUI', () => {
  10. let editor, editorElement;
  11. testUtils.createSinonSandbox();
  12. beforeEach( () => {
  13. editorElement = document.createElement( 'div' );
  14. document.body.appendChild( editorElement );
  15. return ClassicTestEditor
  16. .create( editorElement, {
  17. plugins: [ LinkImageUI ]
  18. } )
  19. .then( newEditor => {
  20. editor = newEditor;
  21. } );
  22. } );
  23. afterEach( () => {
  24. editorElement.remove();
  25. return editor.destroy();
  26. } );
  27. describe( 'init()', () => {
  28. it( 'does nothing', () => {
  29. expect( editor.plugins.get( LinkImageUI ).init() ).to.equal( undefined );
  30. } );
  31. } );
  32. } );