From 3a4e5961b25b70a6579b82363c3bb1c7059a9cca Mon Sep 17 00:00:00 2001 From: Dave Smith Date: Tue, 24 Sep 2024 11:47:43 +0100 Subject: [PATCH] Ensure mock returns correct value --- packages/block-editor/src/store/test/selectors.js | 3 +++ 1 file changed, 3 insertions(+) diff --git a/packages/block-editor/src/store/test/selectors.js b/packages/block-editor/src/store/test/selectors.js index 9df62ce062325..ebf23789fec31 100644 --- a/packages/block-editor/src/store/test/selectors.js +++ b/packages/block-editor/src/store/test/selectors.js @@ -4643,12 +4643,15 @@ describe( 'getBlockEditingMode', () => { } ); it( 'in navigation mode, blocks with content attributes within sections are contentOnly', () => { + hasContentRoleAttribute.mockReturnValueOnce( true ); expect( getBlockEditingMode( navigationModeStateWithRootSection, 'b3247f75-fd94-4fef-97f9-5bfd162cc416' ) ).toBe( 'contentOnly' ); + + hasContentRoleAttribute.mockReturnValueOnce( true ); expect( getBlockEditingMode( navigationModeStateWithRootSection,