Skip to content

Commit

Permalink
Remove settings arg in the SETUP_EDITOR action
Browse files Browse the repository at this point in the history
  • Loading branch information
youknowriad committed May 9, 2018
1 parent b0a537b commit bb5cfe2
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 6 deletions.
4 changes: 1 addition & 3 deletions editor/store/actions.js
Original file line number Diff line number Diff line change
Expand Up @@ -17,15 +17,13 @@ import {
* the specified post object and editor settings.
*
* @param {Object} post Post object.
* @param {Object} settings Editor settings object.
*
* @return {Object} Action object.
*/
export function setupEditor( post, settings ) {
export function setupEditor( post ) {
return {
type: 'SETUP_EDITOR',
post,
settings,
};
}

Expand Down
4 changes: 1 addition & 3 deletions editor/store/test/actions.js
Original file line number Diff line number Diff line change
Expand Up @@ -49,12 +49,10 @@ describe( 'actions', () => {
describe( 'setupEditor', () => {
it( 'should return the SETUP_EDITOR action', () => {
const post = {};
const settings = {};
const result = setupEditor( post, settings );
const result = setupEditor( post );
expect( result ).toEqual( {
type: 'SETUP_EDITOR',
post,
settings,
} );
} );
} );
Expand Down

0 comments on commit bb5cfe2

Please sign in to comment.