Browse Source

Small docs fix.

Szymon Kupś 7 years ago
parent
commit
691aa131be

+ 1 - 1
packages/ckeditor5-undo/src/basecommand.js

@@ -122,7 +122,7 @@ export default class BaseCommand extends Command {
 	 *
 	 * @protected
 	 * @param {module:engine/model/batch~Batch} batchToUndo The batch to be undone.
-	 * @param {module:engine/model/batch~Batch} undoingBatch The batch with undoing changes.
+	 * @param {module:engine/model/batch~Batch} undoingBatch The batch that will contain undoing changes.
 	 */
 	_undo( batchToUndo, undoingBatch ) {
 		const model = this.editor.model;

+ 3 - 3
packages/ckeditor5-undo/tests/redocommand.js

@@ -282,10 +282,10 @@ describe( 'RedoCommand', () => {
 				sinon.assert.calledOnce( enqueueChangeSpy );
 				sinon.assert.calledOnce( undoSpy );
 
-				const redoingbatch = enqueueChangeSpy.firstCall.args[ 0 ];
+				const redoingBatch = enqueueChangeSpy.firstCall.args[ 0 ];
 
-				expect( redoingbatch instanceof Batch ).to.be.true;
-				expect( undoSpy.firstCall.args[ 1 ] ).to.equal( redoingbatch );
+				expect( redoingBatch instanceof Batch ).to.be.true;
+				expect( undoSpy.firstCall.args[ 1 ] ).to.equal( redoingBatch );
 			} );
 		} );
 	} );