-
-
Notifications
You must be signed in to change notification settings - Fork 278
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
Add modules.getMethods() #456
Add modules.getMethods() #456
Conversation
First documentation, first test... Not so simple as it seems to be writing! Sorry for the last commits.... |
Hey @piznel ,
As you put an array of strings in parameters, my point is that it would make more sense.
And then, you could use it like :
|
Hey @Boimb, |
Yep. Ofc. For a single test, knowing the name of the function you're testing, it's easier the "object way".
But, hey... That was just a simple point of view (mine). If you're OK and confortable with it, stick to that ;) |
…ilable function from module
…oute to get available function from module
Gladys Pull Request check-list
To ensure your Pull Request can be accepted as fast as possible, make sure to review and check all of these items:
NOTE: these things are not required to open a PR and can be done afterwards / while the PR is open.
Description of change
this function returns a list of methods passed in parameters with a true or false value if they are exposed by a module.
Example : Testing if a module expose API Television's method
=>
{ getState: true, getChannel: false, getMuted: false }
The
param.service
is optionnel.