Skip to content

Commit

Permalink
(preferences)(hotfix)(17.5) Add expectation preferences that were not…
Browse files Browse the repository at this point in the history
… migrated to the `core` scope, but will still work due to the 17.5.1-specific hotfix

17.5.1-specific hotfix: #58031.
  • Loading branch information
fullofcaffeine committed Jan 23, 2024
1 parent 1f69444 commit 5d17859
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions packages/edit-post/src/store/test/actions.js
Original file line number Diff line number Diff line change
Expand Up @@ -92,6 +92,10 @@ describe( 'actions', () => {
expect( registry.select( editPostStore ).getEditorMode() ).toEqual(
'visual'
);
// Expecation added due to a 17.5.1-specific hotifx: https://github.com/WordPress/gutenberg/pull/58031
expect( console ).toHaveWarnedWith(
"wp.data.select( 'core/preferences' ).get( 'core/edit-post', 'editorMode' ) is deprecated since version 6.5. Please use wp.data.select( 'core/preferences' ).get( 'core', 'editorMode' ) instead."
);
} );

it( 'to text', () => {
Expand Down

0 comments on commit 5d17859

Please sign in to comment.