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 expect finder utility #26

Merged
merged 3 commits into from
Oct 13, 2018

Conversation

brokentone
Copy link
Contributor

Attempting to build one of my own custom rules on top of this repo, I found some cases in which the findExpectCall function was not accurately finding all expect statements. Particularly ones which had function calls within their assertion chain.

The first commit demonstrates the issue, the second commit solves it.

@Turbo87
Copy link
Owner

Turbo87 commented Oct 12, 2018

it looks like the mocha plugin is causing some issues on CI. could you remove that dependency change and limit the PR to just include the expect detection changes?

@brokentone
Copy link
Contributor Author

@Turbo87 Fixed! Sorry, not sure why I ended up with those deps... this code started in a debugging place for sure.

Copy link
Owner

@Turbo87 Turbo87 left a comment

Choose a reason for hiding this comment

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

thanks! 👍

@Turbo87 Turbo87 merged commit 8192f60 into Turbo87:master Oct 13, 2018
@Turbo87 Turbo87 added the bug label Oct 13, 2018
@brokentone brokentone deleted the bugfix/fix-expect-finder branch October 15, 2018 17:01
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants