Skip to content

Commit

Permalink
Preferences: deepFreeze in tests and small styling fix
Browse files Browse the repository at this point in the history
  • Loading branch information
youknowriad committed Aug 29, 2017
1 parent 0730118 commit 09380a4
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
6 changes: 5 additions & 1 deletion editor/sidebar/post-taxonomies/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,11 @@ class PostTaxonomies extends Component {
}

return (
<PanelBody title={ __( 'Categories & Tags' ) } opened={ this.props.isOpened } onToggle={ this.props.onTogglePanel }>
<PanelBody
title={ __( 'Categories & Tags' ) }
opened={ this.props.isOpened }
onToggle={ this.props.onTogglePanel }
>
{ availableTaxonomies.map( ( taxonomy ) => {
const TaxonomyComponent = taxonomy.hierarchical ? HierarchicalTermSelector : FlatTermSelector;
return (
Expand Down
2 changes: 1 addition & 1 deletion editor/test/reducer.js
Original file line number Diff line number Diff line change
Expand Up @@ -817,7 +817,7 @@ describe( 'state', () => {
} );

it( 'should return switched mode', () => {
const state = preferences( { isSidebarOpened: false }, {
const state = preferences( deepFreeze( { isSidebarOpened: false } ), {
type: 'SWITCH_MODE',
mode: 'text',
} );
Expand Down

0 comments on commit 09380a4

Please sign in to comment.