From 40d3dd2f685ae44b065bfb8250f4362e2cab6116 Mon Sep 17 00:00:00 2001 From: Andrei Draganescu Date: Mon, 23 Mar 2020 11:04:02 +0200 Subject: [PATCH] Linting and snapshots fix --- packages/block-library/src/navigation/index.php | 2 +- .../experiments/__snapshots__/navigation.test.js.snap | 7 +++---- 2 files changed, 4 insertions(+), 5 deletions(-) diff --git a/packages/block-library/src/navigation/index.php b/packages/block-library/src/navigation/index.php index ca778f6119eb4d..a0fa9a18607f0e 100644 --- a/packages/block-library/src/navigation/index.php +++ b/packages/block-library/src/navigation/index.php @@ -230,7 +230,7 @@ function block_core_navigation_build_html( $attributes, $block, $colors, $font_s isset( $block['attrs']['id'] ) && 'URL' !== $block['attrs']['type'] ) { - $html .= ' href="' . get_permalink( $block['attrs']['id'] ) . '"'; + $html .= ' href="' . get_permalink( $block['attrs']['id'] ) . '"'; } if ( isset( $block['attrs']['opensInNewTab'] ) && true === $block['attrs']['opensInNewTab'] ) { diff --git a/packages/e2e-tests/specs/experiments/__snapshots__/navigation.test.js.snap b/packages/e2e-tests/specs/experiments/__snapshots__/navigation.test.js.snap index e41ca54dee0304..3ba01b3fe44f60 100644 --- a/packages/e2e-tests/specs/experiments/__snapshots__/navigation.test.js.snap +++ b/packages/e2e-tests/specs/experiments/__snapshots__/navigation.test.js.snap @@ -2,9 +2,8 @@ exports[`Navigation allows a navigation menu to be created from an empty menu using a mixture of internal and external links 1`] = ` " - - - + + " `; @@ -20,6 +19,6 @@ exports[`Navigation allows a navigation menu to be created using existing pages exports[`Navigation allows pages to be created from the navigation block and their links added to menu 1`] = ` " - + " `;