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

Commit

Permalink
Other: Added pluginName property to editing plugin.
Browse files Browse the repository at this point in the history
  • Loading branch information
scofalik committed Oct 10, 2019
1 parent bd088df commit bff780e
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 0 deletions.
7 changes: 7 additions & 0 deletions src/horizontallineediting.js
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,13 @@ import '../theme/horizontalline.css';
* @extends module:core/plugin~Plugin
*/
export default class HorizontalLineEditing extends Plugin {
/**
* @inheritDoc
*/
static get pluginName() {
return 'HorizontalLineEditing';
}

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

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

it( 'should be loaded', () => {
expect( editor.plugins.get( HorizontalLineEditing ) ).to.be.instanceOf( HorizontalLineEditing );
} );
Expand Down

0 comments on commit bff780e

Please sign in to comment.