8
0
Просмотр исходного кода

Changed invalid PendingActions docs. Added test checking if PendingActions is a context plugin.

Oskar Wróbel 6 лет назад
Родитель
Сommit
6c4acf159f

+ 1 - 1
packages/ckeditor5-core/src/pendingactions.js

@@ -50,7 +50,7 @@ import CKEditorError from '@ckeditor/ckeditor5-utils/src/ckeditorerror';
  * and by features like {@link module:autosave/autosave~Autosave} to detect whether there are any ongoing actions.
  * Read more about saving the data in the {@glink builds/guides/integration/saving-data Saving and getting data} guide.
  *
- * @extends module:core/plugin~Plugin
+ * @extends module:core/contextplugin~ContextPlugin
  */
 export default class PendingActions extends ContextPlugin {
 	/**

+ 4 - 0
packages/ckeditor5-core/tests/pendingactions.js

@@ -27,6 +27,10 @@ describe( 'PendingActions', () => {
 		expect( PendingActions ).to.have.property( 'pluginName', 'PendingActions' );
 	} );
 
+	it( 'should be marked as a context plugin', () => {
+		expect( PendingActions.isContextPlugin ).to.true;
+	} );
+
 	describe( 'init()', () => {
 		it( 'should have hasAny observable', () => {
 			const spy = sinon.spy();