8
0

pastefromoffice.js 1.0 KB

123456789101112131415161718192021222324252627282930313233
  1. /**
  2. * @license Copyright (c) 2003-2019, CKSource - Frederico Knabben. All rights reserved.
  3. * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
  4. */
  5. import PasteFromOffice from '../src/pastefromoffice';
  6. import Clipboard from '@ckeditor/ckeditor5-clipboard/src/clipboard';
  7. import VirtualTestEditor from '@ckeditor/ckeditor5-core/tests/_utils/virtualtesteditor';
  8. describe( 'PasteFromOffice', () => {
  9. let editor, pasteFromOffice;
  10. beforeEach( () => {
  11. return VirtualTestEditor.create( {
  12. plugins: [ PasteFromOffice ]
  13. } )
  14. .then( _editor => {
  15. editor = _editor;
  16. pasteFromOffice = editor.plugins.get( 'PasteFromOffice' );
  17. } );
  18. } );
  19. it( 'is Paste from Office', () => {
  20. expect( pasteFromOffice ).to.be.instanceOf( PasteFromOffice );
  21. } );
  22. it( 'should have static name', () => {
  23. expect( PasteFromOffice.pluginName ).to.equal( 'PasteFromOffice' );
  24. } );
  25. it( 'should load Clipboard plugin', () => {
  26. expect( editor.plugins.get( Clipboard ) ).to.be.instanceOf( Clipboard );
  27. } );
  28. } );