Skip to content

Commit

Permalink
Fix unit tests
Browse files Browse the repository at this point in the history
  • Loading branch information
youknowriad committed Feb 15, 2024
1 parent 6798f12 commit d6c82ac
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 29 deletions.
12 changes: 0 additions & 12 deletions packages/edit-post/src/store/test/actions.js
Original file line number Diff line number Diff line change
Expand Up @@ -53,18 +53,6 @@ describe( 'actions', () => {
).toBeNull();
} );

it( 'openGeneralSidebar - should turn off distraction free mode when opening a general sidebar', () => {
registry
.dispatch( preferencesStore )
.set( 'core', 'distractionFree', true );
registry
.dispatch( editPostStore )
.openGeneralSidebar( 'edit-post/block' );
expect(
registry.select( preferencesStore ).get( 'core', 'distractionFree' )
).toBe( false );
} );

it( 'toggleFeature', () => {
registry.dispatch( editPostStore ).toggleFeature( 'welcomeGuide' );
expect(
Expand Down
17 changes: 0 additions & 17 deletions packages/edit-site/src/store/test/actions.js
Original file line number Diff line number Diff line change
Expand Up @@ -75,21 +75,4 @@ describe( 'actions', () => {
expect( select.getEditedPostType() ).toBe( 'wp_template_part' );
} );
} );

describe( 'openGeneralSidebar', () => {
it( 'should turn off distraction free mode when opening a general sidebar', () => {
const registry = createRegistryWithStores();
registry
.dispatch( preferencesStore )
.set( 'core', 'distractionFree', true );
registry
.dispatch( editSiteStore )
.openGeneralSidebar( 'edit-site/global-styles' );
expect(
registry
.select( preferencesStore )
.get( 'core', 'distractionFree' )
).toBe( false );
} );
} );
} );

0 comments on commit d6c82ac

Please sign in to comment.