-
-
Notifications
You must be signed in to change notification settings - Fork 75
Chore: Add test for constructor with parameters #178
Conversation
Thanks for the pull request, @soda0289! I took a look to make sure it's ready for merging and found some changes are needed:
Can you please update the pull request to address these? (More information can be found in our pull request guide.) |
d1b5a00
to
9e9c69d
Compare
LGTM |
@JamesHenry do we need a test with initializers and rest params as well? |
the current test LGTM |
Yes, please! That would be perfect. Looks great so far @soda0289 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Defaults and rest params as @weirdpattern suggested
9e9c69d
to
8b41beb
Compare
LGTM |
@weirdpattern @JamesHenry I have added tests for rest parameters, default parameters, and destructing parameters for both class method and constructors. Let me know if you think we need any more |
LGTM, thank you @soda0289 |
Great, thanks! |
Here is a test that has a class constructor with two parameters.
I noticed we are missing a lot of tests for newer version of ecmascript like async/await functions. As well as tests for class methods with default parameters, deconstructed parameters, and rest parameters.
@JamesHenry Let me know if you want me to add more tests.