diff --git a/packages/editor/src/store/test/selectors.js b/packages/editor/src/store/test/selectors.js index f2e30f17372e1..6d10b7f863aea 100644 --- a/packages/editor/src/store/test/selectors.js +++ b/packages/editor/src/store/test/selectors.js @@ -44,7 +44,7 @@ const { isCurrentPostScheduled, isEditedPostPublishable, isEditedPostSaveable, - isEditedPostAutosaveable: isEditedPostAutosaveableRegistrySelector, + isEditedPostAutosaveable: _isEditedPostAutosaveableRegistrySelector, isEditedPostEmpty, isEditedPostBeingScheduled, isEditedPostDateFloating, @@ -71,9 +71,14 @@ const { describe( 'selectors', () => { let cachedSelectors; + let isEditedPostAutosaveableRegistrySelector; beforeAll( () => { cachedSelectors = filter( selectors, ( selector ) => selector.clear ); + isEditedPostAutosaveableRegistrySelector = ( select ) => { + _isEditedPostAutosaveableRegistrySelector.registry = { select }; + return _isEditedPostAutosaveableRegistrySelector; + }; } ); beforeEach( () => {