Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Site Editor: Expose edit-site store #28722

Merged
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Remove calls to registerEditSiteStore
  • Loading branch information
david-szabo97 committed Feb 4, 2021

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature.
commit 381c5c25e5132ace1a9b461e8354d06775cf59b7
3 changes: 0 additions & 3 deletions packages/edit-site/src/store/test/actions.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
/**
* Internal dependencies
*/
import registerEditSiteStore from '..';
import {
toggleFeature,
setTemplate,
@@ -13,8 +12,6 @@ import {
setHomeTemplateId,
} from '../actions';

registerEditSiteStore();

describe( 'actions', () => {
describe( 'toggleFeature', () => {
it( 'should return TOGGLE_FEATURE action', () => {
3 changes: 0 additions & 3 deletions packages/edit-site/src/store/test/reducer.js
Original file line number Diff line number Diff line change
@@ -22,9 +22,6 @@ import {
setIsNavigationPanelOpened,
setIsInserterOpened,
} from '../actions';
import registerEditSiteStore from '..';

registerEditSiteStore();

describe( 'state', () => {
describe( 'preferences()', () => {
3 changes: 0 additions & 3 deletions packages/edit-site/src/store/test/selectors.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
/**
* Internal dependencies
*/
import registerEditSiteStore from '..';
import {
isFeatureActive,
getCanUserCreateMedia,
@@ -15,8 +14,6 @@ import {
isInserterOpened,
} from '../selectors';

registerEditSiteStore();

describe( 'selectors', () => {
const canUser = jest.fn( () => true );
getCanUserCreateMedia.registry = {