Skip to content

Commit

Permalink
improve function name
Browse files Browse the repository at this point in the history
  • Loading branch information
nerrad committed Mar 12, 2019
1 parent 3596751 commit af64950
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion assets/src/data/eventespresso/core/actions/reset.js
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ const { resets: types } = ACTION_TYPES;
/**
* Resets the entire state to its default for the store.
*/
export function* resetEntireState() {
export function* resetAllState() {
// action for resetting the entire state.
yield {
type: types.RESET_ALL_STATE,
Expand Down
6 changes: 3 additions & 3 deletions assets/src/data/eventespresso/core/actions/test/reset.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ import { EventEntity } from '@test/fixtures';
* Internal imports.
*/
import {
resetEntireState,
resetAllState,
resetStateForModel,
resetAllModelSpecific,
resetModelSpecificForSelector,
Expand All @@ -19,7 +19,7 @@ import { REDUCER_KEY } from '../../constants';

const { resets: types } = ACTION_TYPES;

describe( 'resetEntireState()', () => {
describe( 'resetAllState()', () => {
const mockMap = {
selectorA: new EquivalentKeyMap(
[ [ 'foo', 'bar' ], [ 'hello', 'goodbye' ] ]
Expand All @@ -28,7 +28,7 @@ describe( 'resetEntireState()', () => {
[ [ 'foo', 'bar' ] ]
),
};
const fulfillment = resetEntireState();
const fulfillment = resetAllState();

it( 'yields action for resetting all state', () => {
const { value } = fulfillment.next();
Expand Down

0 comments on commit af64950

Please sign in to comment.