Skip to content
New issue

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

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

Already on GitHub? # to your account

Fix Android atIndex matcher by fixing typo #321

Merged
merged 1 commit into from
Oct 6, 2017

Conversation

pietropizzi
Copy link
Contributor

There was a typo in the name of the java method. It was 'matherForAtIndex' instead of 'matcherForAtIndex'

Copy link
Contributor

@DanielMSchmidt DanielMSchmidt left a comment

Choose a reason for hiding this comment

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

Looks great, awesome job 👍

@@ -218,7 +218,7 @@ class Element {
atIndex(index) {
if (typeof index !== 'number') throw new Error(`Element atIndex argument must be a number, got ${typeof index}`);
const matcher = this._originalMatcher;
this._originalMatcher._call = invoke.call(invoke.Android.Class(DetoxMatcher), 'matherForAtIndex', invoke.Android.Integer(index), matcher._call);
this._originalMatcher._call = invoke.call(invoke.Android.Class(DetoxMatcher), 'matcherForAtIndex', invoke.Android.Integer(index), matcher._call);
Copy link
Contributor

Choose a reason for hiding this comment

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

Great job 👍 @rotemmiz this is why generated code is superior 🏆 :trollface:

Copy link
Contributor Author

Choose a reason for hiding this comment

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

One thing: I could not find a test for this that was failing before. Not sure if this should have been caught or not ¯_(ツ)_/¯

@rotemmiz rotemmiz merged commit 51c4f33 into wix:master Oct 6, 2017
@wix wix locked and limited conversation to collaborators Jul 23, 2018
# for free to subscribe to this conversation on GitHub. Already have an account? #.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants