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

Commit

Permalink
Internal: Added names to the plugins that expose a public API (see ck…
Browse files Browse the repository at this point in the history
  • Loading branch information
oleq committed Feb 14, 2019
1 parent 7a845a0 commit 92972f8
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 0 deletions.
7 changes: 7 additions & 0 deletions src/linkui.js
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,13 @@ export default class LinkUI extends Plugin {
return [ ContextualBalloon ];
}

/**
* @inheritDoc
*/
static get pluginName() {
return 'LinkUI';
}

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

it( 'should be named', () => {
expect( LinkUI.pluginName ).to.equal( 'LinkUI' );
} );

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

0 comments on commit 92972f8

Please sign in to comment.