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

Fix to-have-length when there are no argument properties #6

Merged
merged 3 commits into from
Nov 9, 2017
Merged

Conversation

SimenB
Copy link
Member

@SimenB SimenB commented Nov 9, 2017

@SimenB SimenB requested a review from thymikee November 9, 2017 13:40
if (propertyName === 'toBe' && argumentProperty.name === 'length') {
if (
argumentProperty &&
propertyName === 'toBe' &&
Copy link
Member

Choose a reason for hiding this comment

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

just a nit, can we switch these two lines?

Copy link
Member Author

Choose a reason for hiding this comment

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

what do you mean?

Copy link
Member Author

Choose a reason for hiding this comment

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

Oh, gotcha

Copy link
Member

Choose a reason for hiding this comment

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

Sorry for being indirect :D

@SimenB SimenB merged commit 1df3bd5 into master Nov 9, 2017
@SimenB SimenB deleted the fix-5 branch November 9, 2017 14:01
@SimenB
Copy link
Member Author

SimenB commented Nov 9, 2017

The rule now runs successfully on the jest codebase as well

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants