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 1fcda64 commit a3bf928
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 0 deletions.
7 changes: 7 additions & 0 deletions src/linkediting.js
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,13 @@ const EXTERNAL_LINKS_REGEXP = /^(https?:)?\/\//;
* @extends module:core/plugin~Plugin
*/
export default class LinkEditing extends Plugin {
/**
* @inheritDoc
*/
static get pluginName() {
return 'LinkEditing';
}

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

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

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

0 comments on commit a3bf928

Please sign in to comment.