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

Allow for multiple sets of possible required parameters #41

Merged
merged 1 commit into from
Jan 22, 2016

Conversation

imurchie
Copy link
Contributor

There were cases where two or more different sets of required parameters could be passed in, which caused a failure.

See appium/java-client#302

@imurchie
Copy link
Contributor Author

@Jonahss

@@ -69,23 +69,43 @@ function checkParams (paramSets, jsonObj) {
// some clients pass in an element id in the params
optionalParams.push('id');

// if we have no required parameters, all is well
Copy link
Contributor

Choose a reason for hiding this comment

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

This block of code could be moved up a couple lines to line 65, couldn't it? Because we don't care about setting up optional params if there are no required params.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

True. Updated.

@Jonahss
Copy link
Contributor

Jonahss commented Jan 22, 2016

One comment, otherwise good.

Yay for more tests :)

imurchie added a commit that referenced this pull request Jan 22, 2016
Allow for multiple sets of possible required parameters
@imurchie imurchie merged commit 1b90571 into master Jan 22, 2016
@imurchie imurchie deleted the isaac-params branch January 22, 2016 22:07
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