Skip to content

Commit

Permalink
Apply suggestions from code review
Browse files Browse the repository at this point in the history
Co-authored-by: Steve Boyd <[email protected]>
  • Loading branch information
maxime-rainville and emteknetnz authored Mar 23, 2022
1 parent 9677235 commit 9594659
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions client/src/components/ElementActions/tests/SaveAction-test.js
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ describe('SaveAction', () => {
const WrappedComponent = (props) => <div>{props.children}</div>;
const ActionComponent = SaveAction(WrappedComponent);

it('renders a button when block is expendable', () => {
it('renders a button when block is expandable', () => {
wrapper = mount(
<ActionComponent
title="My save action"
Expand All @@ -31,7 +31,7 @@ describe('SaveAction', () => {
expect(wrapper.find('button').length).toBe(1);
});

it('does not renders a button when block is not expendable', () => {
it('does not renders a button when block is not expandable', () => {
wrapper = mount(
<ActionComponent
title="My save action"
Expand Down
2 changes: 1 addition & 1 deletion client/src/components/ElementEditor/ElementActions.js
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ class ElementActions extends Component {
* @returns {ActionMenuComponent|null}
*/
render() {
const { children, id, ActionMenuComponent, expandable } = this.props;
const { children, id, ActionMenuComponent } = this.props;


const dropdownToggleClassNames = [
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ describe('ElementActions', () => {
expect(wrapper.find('DropdownItem').length).toBe(1);
});

it('should not render tab for none-expandable block', () => {
it('should not render inline-edit items for non-expandable block', () => {
const wrapper = shallow(
<ElementActions
areaId={1}
Expand Down

0 comments on commit 9594659

Please sign in to comment.