Skip to content

Commit

Permalink
Remove defunct reducer tests
Browse files Browse the repository at this point in the history
  • Loading branch information
talldan committed Mar 3, 2022
1 parent b4ba612 commit 0d04d86
Showing 1 changed file with 0 additions and 22 deletions.
22 changes: 0 additions & 22 deletions packages/edit-site/src/store/test/reducer.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,15 +7,13 @@ import deepFreeze from 'deep-freeze';
* Internal dependencies
*/
import {
preferences,
settings,
homeTemplateId,
editedPost,
navigationPanel,
blockInserterPanel,
listViewPanel,
} from '../reducer';
import { PREFERENCES_DEFAULTS } from '../defaults';

import {
setNavigationPanelActiveMenu,
Expand All @@ -26,26 +24,6 @@ import {
} from '../actions';

describe( 'state', () => {
describe( 'preferences()', () => {
it( 'should apply all defaults', () => {
const state = preferences( undefined, {} );

expect( state ).toEqual( PREFERENCES_DEFAULTS );
} );

it( 'should toggle a feature flag', () => {
const state = preferences(
deepFreeze( { features: { chicken: true } } ),
{
type: 'TOGGLE_FEATURE',
feature: 'chicken',
}
);

expect( state.features ).toEqual( { chicken: false } );
} );
} );

describe( 'settings()', () => {
it( 'should apply default state', () => {
expect( settings( undefined, {} ) ).toEqual( {} );
Expand Down

0 comments on commit 0d04d86

Please sign in to comment.