Skip to content

Commit

Permalink
small code style change
Browse files Browse the repository at this point in the history
  • Loading branch information
youknowriad committed Sep 14, 2018
1 parent 0b58955 commit 34d4b4d
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions packages/list-reusable-blocks/src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ document.body.addEventListener( 'click', ( event ) => {
} );

// Setup Import Form
document.addEventListener( 'DOMContentLoaded', function() {
document.addEventListener( 'DOMContentLoaded', () => {
const button = document.querySelector( '.page-title-action' );
if ( ! button ) {
return;
Expand All @@ -29,7 +29,7 @@ document.addEventListener( 'DOMContentLoaded', function() {
const showNotice = () => {
const notice = document.createElement( 'div' );
notice.className = 'notice notice-success is-dismissible';
notice.innerHTML = `<p>${ __( 'Reusable block imported with success!' ) }</p>`;
notice.innerHTML = `<p>${ __( 'Reusable block imported successfully!' ) }</p>`;

const headerEnd = document.querySelector( '.wp-header-end' );
if ( ! headerEnd ) {
Expand Down
2 changes: 1 addition & 1 deletion test/e2e/specs/manage-reusable-blocks.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ describe( 'Managing reusable blocks', () => {
// Wait for the success notice
await page.waitForSelector( '.notice-success' );
const noticeContent = await page.$eval( '.notice-success', ( element ) => element.textContent );
expect( noticeContent ).toEqual( 'Reusable block imported with success!' );
expect( noticeContent ).toEqual( 'Reusable block imported successfully!' );

// Refresh the page
await visitAdmin( 'edit.php', 'post_type=wp_block' );
Expand Down

0 comments on commit 34d4b4d

Please sign in to comment.