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(prepareOpts): TypeError when opts is undefined #66

Merged
merged 2 commits into from
May 8, 2020

Conversation

Vorobeyko
Copy link
Contributor

@Vorobeyko Vorobeyko commented Mar 16, 2020

My tools use lookSame and pass some parameters to this function.
But sometimes the tools has bugs and passes to lookSame undefined opts, and I get error.

Cannot set property 'tolerance' of undefined

Because prepareOpts try to set value to opts.tolerance, but opts is undefined.

My proposal using empty object by default.

@Vorobeyko
Copy link
Contributor Author

@DudaGod HI!
Can you merge this mr?

@DudaGod
Copy link
Member

DudaGod commented Apr 14, 2020

@Vorobeyko hello. Can you fix type for options here - https://github.com/gemini-testing/looks-same/blob/master/index.d.ts#L194?

And I will merge it. Thank you.

@Vorobeyko
Copy link
Contributor Author

@DudaGod I did!
Thats ok?

@DudaGod DudaGod merged commit c6ea6c2 into gemini-testing:master May 8, 2020
@DudaGod
Copy link
Member

DudaGod commented May 8, 2020

Yes. Thank you.

@DudaGod
Copy link
Member

DudaGod commented May 8, 2020

available at [email protected]

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.

3 participants