From cf019a19d42f6700d28a76e1d64cd70c0c726ded Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?S=C3=B6ren=20Wrede?= Date: Thu, 31 May 2018 11:16:06 +0200 Subject: [PATCH] Fix some code comments (#7044) --- editor/store/actions.js | 2 +- editor/store/defaults.js | 2 +- editor/store/test/reducer.js | 2 +- test/e2e/specs/classic-editor.test.js | 2 +- test/e2e/specs/formatting-controls.test.js | 2 +- test/e2e/support/plugins.js | 2 +- 6 files changed, 6 insertions(+), 6 deletions(-) diff --git a/editor/store/actions.js b/editor/store/actions.js index a0250399e4d216..24d86603d87b2a 100644 --- a/editor/store/actions.js +++ b/editor/store/actions.js @@ -338,7 +338,7 @@ export function setTemplateValidity( isValid ) { } /** - * Returns an action object tocheck the template validity. + * Returns an action object to check the template validity. * * @return {Object} Action object. */ diff --git a/editor/store/defaults.js b/editor/store/defaults.js index febaf4f9fa295e..9ee0337aa27746 100644 --- a/editor/store/defaults.js +++ b/editor/store/defaults.js @@ -60,7 +60,7 @@ export const EDITOR_SETTINGS_DEFAULTS = { ], // This is current max width of the block inner area - // It's used to constraint image resizing and this value could be overriden later by themes + // It's used to constraint image resizing and this value could be overridden later by themes maxWidth: 608, // Allowed block types for the editor, defaulting to true (all supported). diff --git a/editor/store/test/reducer.js b/editor/store/test/reducer.js index 74510861d3454f..32aa4e875bfca4 100644 --- a/editor/store/test/reducer.js +++ b/editor/store/test/reducer.js @@ -1134,7 +1134,7 @@ describe( 'state', () => { } ); } ); - it( 'should ignore updates to non-existant block', () => { + it( 'should ignore updates to non-existent block', () => { const original = deepFreeze( editor( undefined, { type: 'RESET_BLOCKS', blocks: [], diff --git a/test/e2e/specs/classic-editor.test.js b/test/e2e/specs/classic-editor.test.js index cd4464b3601ab7..ca4d0ea333a7f3 100644 --- a/test/e2e/specs/classic-editor.test.js +++ b/test/e2e/specs/classic-editor.test.js @@ -18,7 +18,7 @@ describe( 'classic editor', () => { // type some random text await page.keyboard.type( 'Typing in classic editor' ); - // Swtich to HTML mode + // Switch to HTML mode await page.click( '#content-html' ); const textEditorContent = await page.$eval( '.wp-editor-area', ( element ) => element.value ); diff --git a/test/e2e/specs/formatting-controls.test.js b/test/e2e/specs/formatting-controls.test.js index 7534f2f2480bed..a7d5d885da035b 100644 --- a/test/e2e/specs/formatting-controls.test.js +++ b/test/e2e/specs/formatting-controls.test.js @@ -14,7 +14,7 @@ describe( 'Formatting Controls', () => { } ); it( 'Should apply the formatting controls', async () => { - // Creatinig a paragraph block with some content + // Creating a paragraph block with some content await page.click( '.editor-default-block-appender' ); await page.keyboard.type( 'Paragraph to be made "bold"' ); diff --git a/test/e2e/support/plugins.js b/test/e2e/support/plugins.js index 3d84ccf8eaa441..82fad23b50a1a1 100644 --- a/test/e2e/support/plugins.js +++ b/test/e2e/support/plugins.js @@ -27,7 +27,7 @@ export async function activatePlugin( slug ) { } /** - * Dectivates an active plugin. + * Deactivates an active plugin. * * @param {string} slug Plugin slug. */