Skip to content

Commit

Permalink
Update more tests
Browse files Browse the repository at this point in the history
  • Loading branch information
talldan committed Nov 25, 2024
1 parent e04a66c commit 60b3dfa
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions packages/block-editor/src/store/test/selectors.js
Original file line number Diff line number Diff line change
Expand Up @@ -4468,15 +4468,16 @@ describe( 'getBlockEditingMode', () => {
};

const hasContentRoleAttribute = jest.fn( () => false );
const get = jest.fn( () => 'edit' );

const fauxPrivateAPIs = {};
const mockedSelectors = { get };

lock( fauxPrivateAPIs, {
lock( mockedSelectors, {
hasContentRoleAttribute,
} );

getBlockEditingMode.registry = {
select: jest.fn( () => fauxPrivateAPIs ),
select: jest.fn( () => mockedSelectors ),
};

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

0 comments on commit 60b3dfa

Please sign in to comment.