Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

remove unnecessary default prop from test (inserter/test/menu.js) #7984

Merged

Conversation

nerrad
Copy link
Contributor

@nerrad nerrad commented Jul 16, 2018

Description

See https://github.com/WordPress/gutenberg/pull/7773/files#r202718599 for comment raising this issue. There is no necessity for this prop to be set because we aren’t testing anything explicitly requiring that prop. Originally it was intended to mock the instanceId prop provided by the withInstanceId HOC but was implemented with an incorrect name. As mentioned, its not needed at all so just removing.

How has this been tested?

  • Verified test still passes locally.

Checklist:

  • My code is tested.
  • My code follows the WordPress code style.
  • My code follows the accessibility standards.
  • My code has proper inline documentation.

See https://github.com/WordPress/gutenberg/pull/7773/files#r202718599 for comment raising this issue.  There is no necessity for this prop to be set because we aren’t testing anything explicitly requiring that prop.  Originally it was intended to mock the `instanceId` prop provided by the `withInstanceId` HOC but was implemented with an incorrect name.  As mentioned, its not needed at all so just removing.
@nerrad nerrad requested a review from aduth July 16, 2018 15:32
@nerrad nerrad self-assigned this Jul 16, 2018
@nerrad nerrad added [Type] Automated Testing Testing infrastructure changes impacting the execution of end-to-end (E2E) and/or unit tests. [Type] Bug An existing feature does not function as intended [Type] Enhancement A suggestion for improvement. and removed [Type] Bug An existing feature does not function as intended labels Jul 16, 2018
Copy link
Member

@aduth aduth left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for hopping on this so quickly 👍

@gziolo gziolo merged commit 16ff604 into master Jul 16, 2018
@gziolo gziolo added this to the 3.3 milestone Jul 16, 2018
@gziolo gziolo deleted the fix/remove-unnecessary-prop-from-test-(inserter-menu.js) branch July 16, 2018 15:48
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
[Type] Automated Testing Testing infrastructure changes impacting the execution of end-to-end (E2E) and/or unit tests. [Type] Enhancement A suggestion for improvement.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants