Skip to content

Commit

Permalink
Fix some code comments (#7044)
Browse files Browse the repository at this point in the history
  • Loading branch information
Soean authored and gziolo committed May 31, 2018
1 parent 5673eb8 commit cf019a1
Show file tree
Hide file tree
Showing 6 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion editor/store/actions.js
Original file line number Diff line number Diff line change
Expand Up @@ -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.
*/
Expand Down
2 changes: 1 addition & 1 deletion editor/store/defaults.js
Original file line number Diff line number Diff line change
Expand Up @@ -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).
Expand Down
2 changes: 1 addition & 1 deletion editor/store/test/reducer.js
Original file line number Diff line number Diff line change
Expand Up @@ -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: [],
Expand Down
2 changes: 1 addition & 1 deletion test/e2e/specs/classic-editor.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -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 );
Expand Down
2 changes: 1 addition & 1 deletion test/e2e/specs/formatting-controls.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -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"' );

Expand Down
2 changes: 1 addition & 1 deletion test/e2e/support/plugins.js
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ export async function activatePlugin( slug ) {
}

/**
* Dectivates an active plugin.
* Deactivates an active plugin.
*
* @param {string} slug Plugin slug.
*/
Expand Down

0 comments on commit cf019a1

Please sign in to comment.