Skip to content
Merged
Prev Previous commit
Next Next commit
Fix some unit tests
  • Loading branch information
t-hamano committed Jul 31, 2025
commit f3ca9eaff3dcd1260f3b0856925f4aa47e97053e
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
// Jest Snapshot v1, https://goo.gl/fbAQLP

exports[`anchor should set the ID attribute on the block 1`] = `
"<!-- wp:paragraph -->
"<!-- wp:paragraph {"anchor":"my-anchor"} -->
<p id="my-anchor"></p>
<!-- /wp:paragraph -->"
`;
4 changes: 2 additions & 2 deletions test/integration/fixtures/blocks/core__group__deprecated.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@
"attributes": {
"tagName": "div",
"align": "full",
"anchor": "test-id",
"backgroundColor": "lighter-blue"
"backgroundColor": "lighter-blue",
"anchor": "test-id"
},
"innerBlocks": [
{
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
<!-- wp:group {"align":"full","backgroundColor":"lighter-blue"} -->
<!-- wp:group {"align":"full","anchor":"test-id","backgroundColor":"lighter-blue"} -->
<div class="wp-block-group alignfull has-lighter-blue-background-color has-background" id="test-id"><!-- wp:paragraph -->
<p>test</p>
<!-- /wp:paragraph --></div>
Expand Down
Loading