Skip to content

Commit

Permalink
clean up unit tests after click handler change
Browse files Browse the repository at this point in the history
  • Loading branch information
Adam Silverstein authored and youknowriad committed Dec 21, 2018
1 parent 2bafaf8 commit f417d52
Showing 1 changed file with 16 additions and 5 deletions.
21 changes: 16 additions & 5 deletions packages/editor/src/components/post-publish-button/test/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,10 @@ describe( 'PostPublishButton', () => {
<PostPublishButton
hasPublishAction={ false }
onStatusChange={ onStatusChange }
onSave={ onSave } />
onSave={ onSave }
isSaveable={ true }
isPublishable={ true }
/>
);

wrapper.simulate( 'click' );
Expand All @@ -119,7 +122,9 @@ describe( 'PostPublishButton', () => {
hasPublishAction={ true }
onStatusChange={ onStatusChange }
onSave={ onSave }
isBeingScheduled />
isBeingScheduled
isSaveable={ true }
isPublishable={ true } />
);

wrapper.simulate( 'click' );
Expand All @@ -135,7 +140,9 @@ describe( 'PostPublishButton', () => {
hasPublishAction={ true }
onStatusChange={ onStatusChange }
onSave={ onSave }
visibility="private" />
visibility="private"
isSaveable={ true }
isPublishable={ true } />
);

wrapper.simulate( 'click' );
Expand All @@ -150,7 +157,9 @@ describe( 'PostPublishButton', () => {
<PostPublishButton
hasPublishAction={ true }
onStatusChange={ onStatusChange }
onSave={ onSave } />
onSave={ onSave }
isSaveable={ true }
isPublishable={ true } />
);

wrapper.simulate( 'click' );
Expand All @@ -167,7 +176,9 @@ describe( 'PostPublishButton', () => {
<PostPublishButton
hasPublishAction={ true }
onStatusChange={ onStatusChange }
onSave={ onSave } />
onSave={ onSave }
isSaveable={ true }
isPublishable={ true } />
);

wrapper.simulate( 'click' );
Expand Down

0 comments on commit f417d52

Please sign in to comment.