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 5662d4e commit 48be07f
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 0 deletions.
7 changes: 7 additions & 0 deletions src/listediting.js
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,13 @@ import {
* @extends module:core/plugin~Plugin
*/
export default class ListEditing extends Plugin {
/**
* @inheritDoc
*/
static get pluginName() {
return 'ListEditing';
}

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

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

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

0 comments on commit 48be07f

Please sign in to comment.