From 60b3dfa6743a6e993af683421a3625d4b7f0867c Mon Sep 17 00:00:00 2001 From: Daniel Richards Date: Mon, 25 Nov 2024 18:14:25 +0800 Subject: [PATCH] Update more tests --- packages/block-editor/src/store/test/selectors.js | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/packages/block-editor/src/store/test/selectors.js b/packages/block-editor/src/store/test/selectors.js index c69d78135f143..7692bd6bf2cbb 100644 --- a/packages/block-editor/src/store/test/selectors.js +++ b/packages/block-editor/src/store/test/selectors.js @@ -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', () => {