Skip to content

Commit

Permalink
Fix unit tests
Browse files Browse the repository at this point in the history
  • Loading branch information
youknowriad committed Dec 18, 2023
1 parent 981d6d2 commit bbbe2ff
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion packages/edit-post/src/store/test/actions.js
Original file line number Diff line number Diff line change
Expand Up @@ -271,7 +271,7 @@ describe( 'actions', () => {
.select( preferencesStore )
.get( 'core/edit-post', 'fixedToolbar' )
).toBe( true );
expect( registry.select( editPostStore ).isListViewOpened() ).toBe(
expect( registry.select( editorStore ).isListViewOpened() ).toBe(
false
);
expect( registry.select( editorStore ).isInserterOpened() ).toBe(
Expand Down
2 changes: 1 addition & 1 deletion packages/edit-site/src/store/actions.js
Original file line number Diff line number Diff line change
Expand Up @@ -608,7 +608,7 @@ export const toggleDistractionFree =
registry
.dispatch( preferencesStore )
.set( 'core/edit-site', 'fixedToolbar', true );
dispatch.dispatch( editorStore ).setIsInserterOpened( false );
registry.dispatch( editorStore ).setIsInserterOpened( false );
registry.dispatch( editorStore ).setIsListViewOpened( false );
dispatch.closeGeneralSidebar();
} );
Expand Down
2 changes: 1 addition & 1 deletion packages/edit-site/src/store/test/actions.js
Original file line number Diff line number Diff line change
Expand Up @@ -121,7 +121,7 @@ describe( 'actions', () => {
registry
.dispatch( preferencesStore )
.set( 'core/edit-site', 'fixedToolbar', true );
registry.dispatch( editSiteStore ).setIsListViewOpened( true );
registry.dispatch( editorStore ).setIsListViewOpened( true );
registry
.dispatch( editSiteStore )
.openGeneralSidebar( 'edit-site/global-styles' );
Expand Down

0 comments on commit bbbe2ff

Please sign in to comment.