Skip to content
This repository has been archived by the owner on Jun 26, 2020. It is now read-only.

Commit

Permalink
Feature: Added pluginName to the editor plugin part of the feature.
Browse files Browse the repository at this point in the history
  • Loading branch information
scofalik committed Oct 7, 2019
1 parent cc86034 commit 3b42798
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 0 deletions.
7 changes: 7 additions & 0 deletions src/alignmentediting.js
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,13 @@ import { isDefault, isSupported, supportedOptions } from './utils';
* @extends module:core/plugin~Plugin
*/
export default class AlignmentEditing extends Plugin {
/**
* @inheritDoc
*/
static get pluginName() {
return 'AlignmentEditing';
}

/**
* @inheritDoc
*/
Expand Down
4 changes: 4 additions & 0 deletions tests/alignmentediting.js
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,10 @@ describe( 'AlignmentEditing', () => {
editor.destroy();
} );

it( 'should have pluginName', () => {
expect( AlignmentEditing.pluginName ).to.equal( 'AlignmentEditing' );
} );

it( 'adds alignment command', () => {
expect( editor.commands.get( 'alignment' ) ).to.be.instanceOf( AlignmentCommand );
} );
Expand Down

0 comments on commit 3b42798

Please sign in to comment.