Skip to content

Commit

Permalink
Update getBlockEditingMode tests
Browse files Browse the repository at this point in the history
  • Loading branch information
noisysocks committed Jun 9, 2023
1 parent a82a20b commit 41c2532
Showing 1 changed file with 5 additions and 8 deletions.
13 changes: 5 additions & 8 deletions packages/block-editor/src/store/test/private-selectors.js
Original file line number Diff line number Diff line change
@@ -1,8 +1,3 @@
/**
* WordPress dependencies
*/
import { select } from '@wordpress/data';

/**
* Internal dependencies
*/
Expand Down Expand Up @@ -126,9 +121,11 @@ describe( 'private selectors', () => {
const __experimentalHasContentRoleAttribute = jest.fn(
() => false
);
select.mockReturnValue( {
__experimentalHasContentRoleAttribute,
} );
getBlockEditingMode.registry = {
select: jest.fn( () => ( {
__experimentalHasContentRoleAttribute,
} ) ),
};

it( 'should return default by default', () => {
expect(
Expand Down

0 comments on commit 41c2532

Please sign in to comment.