tableclipboard.js 1.0 KB

123456789101112131415161718192021222324252627282930313233343536
  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. import VirtualTestEditor from '@ckeditor/ckeditor5-core/tests/_utils/virtualtesteditor';
  6. import Paragraph from '@ckeditor/ckeditor5-paragraph/src/paragraph';
  7. import TableSelection from '../src/tableselection';
  8. import TableUtils from '../src/tableutils';
  9. import TableClipboard from '../src/tableclipboard';
  10. describe( 'table clipboard', () => {
  11. let editor;
  12. beforeEach( async () => {
  13. editor = await VirtualTestEditor.create( {
  14. plugins: [ TableClipboard, Paragraph ]
  15. } );
  16. } );
  17. afterEach( () => {
  18. return editor.destroy();
  19. } );
  20. describe( 'TableClipboard', () => {
  21. it( 'should have pluginName', () => {
  22. expect( TableClipboard.pluginName ).to.equal( 'TableClipboard' );
  23. } );
  24. it( 'requires TableSelection and TableUtils ', () => {
  25. expect( TableClipboard.requires ).to.deep.equal( [ TableSelection, TableUtils ] );
  26. } );
  27. } );
  28. } );