|
@@ -11,32 +11,34 @@ import TableEditing from '../src/tableediting';
|
|
|
import TableProperties from '../src/tableproperties';
|
|
import TableProperties from '../src/tableproperties';
|
|
|
import TablePropertiesEditing from '../src/tableproperties/tablepropertiesediting';
|
|
import TablePropertiesEditing from '../src/tableproperties/tablepropertiesediting';
|
|
|
|
|
|
|
|
-describe( 'TableProperties', () => {
|
|
|
|
|
- let editor, editorElement;
|
|
|
|
|
|
|
+describe( 'table properties', () => {
|
|
|
|
|
+ describe( 'TableProperties', () => {
|
|
|
|
|
+ let editor, editorElement;
|
|
|
|
|
|
|
|
- beforeEach( async () => {
|
|
|
|
|
- editorElement = global.document.createElement( 'div' );
|
|
|
|
|
- global.document.body.appendChild( editorElement );
|
|
|
|
|
|
|
+ beforeEach( async () => {
|
|
|
|
|
+ editorElement = global.document.createElement( 'div' );
|
|
|
|
|
+ global.document.body.appendChild( editorElement );
|
|
|
|
|
|
|
|
- editor = await ClassicTestEditor.create( editorElement, {
|
|
|
|
|
- plugins: [ TableProperties, Paragraph, TableEditing ]
|
|
|
|
|
|
|
+ editor = await ClassicTestEditor.create( editorElement, {
|
|
|
|
|
+ plugins: [ TableProperties, Paragraph, TableEditing ]
|
|
|
|
|
+ } );
|
|
|
} );
|
|
} );
|
|
|
- } );
|
|
|
|
|
|
|
|
|
|
- afterEach( async () => {
|
|
|
|
|
- editorElement.remove();
|
|
|
|
|
- await editor.destroy();
|
|
|
|
|
- } );
|
|
|
|
|
|
|
+ afterEach( async () => {
|
|
|
|
|
+ editorElement.remove();
|
|
|
|
|
+ await editor.destroy();
|
|
|
|
|
+ } );
|
|
|
|
|
|
|
|
- it( 'should be loaded', () => {
|
|
|
|
|
- expect( editor.plugins.get( TableProperties ) ).to.instanceOf( TableProperties );
|
|
|
|
|
- } );
|
|
|
|
|
|
|
+ it( 'should be loaded', () => {
|
|
|
|
|
+ expect( editor.plugins.get( TableProperties ) ).to.instanceOf( TableProperties );
|
|
|
|
|
+ } );
|
|
|
|
|
|
|
|
- it( 'should load TablePropertiesEditing plugin', () => {
|
|
|
|
|
- expect( editor.plugins.get( TablePropertiesEditing ) ).to.instanceOf( TablePropertiesEditing );
|
|
|
|
|
- } );
|
|
|
|
|
|
|
+ it( 'should load TablePropertiesEditing plugin', () => {
|
|
|
|
|
+ expect( editor.plugins.get( TablePropertiesEditing ) ).to.instanceOf( TablePropertiesEditing );
|
|
|
|
|
+ } );
|
|
|
|
|
|
|
|
- it( 'should have pluginName', () => {
|
|
|
|
|
- expect( TableProperties.pluginName ).to.equal( 'TableProperties' );
|
|
|
|
|
|
|
+ it( 'should have pluginName', () => {
|
|
|
|
|
+ expect( TableProperties.pluginName ).to.equal( 'TableProperties' );
|
|
|
|
|
+ } );
|
|
|
} );
|
|
} );
|
|
|
} );
|
|
} );
|