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 b917f72 commit 93e8727
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 0 deletions.
7 changes: 7 additions & 0 deletions src/headingediting.js
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,13 @@ const defaultModelElement = 'paragraph';
* @extends module:core/plugin~Plugin
*/
export default class HeadingEditing extends Plugin {
/**
* @inheritDoc
*/
static get pluginName() {
return 'HeadingEditing';
}

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

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

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

0 comments on commit 93e8727

Please sign in to comment.