Skip to content
This repository was archived by the owner on Jan 19, 2019. It is now read-only.

Chore: Add test for constructor with parameters #178

Merged
merged 1 commit into from
Feb 27, 2017

Conversation

soda0289
Copy link
Member

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.

@eslintbot
Copy link

Thanks for the pull request, @soda0289! I took a look to make sure it's ready for merging and found some changes are needed:

  • Pull requests with code require an issue to be mentioned at the end of the commit summary, such as (fixes #1234). Please update the commit summary with an issue (file a new issue if one doesn't already exist).

Can you please update the pull request to address these?

(More information can be found in our pull request guide.)

@soda0289 soda0289 force-pushed the add-constructor-tests branch from d1b5a00 to 9e9c69d Compare February 26, 2017 20:03
@eslintbot
Copy link

LGTM

@weirdpattern
Copy link
Contributor

@JamesHenry do we need a test with initializers and rest params as well?

@weirdpattern
Copy link
Contributor

the current test LGTM

@JamesHenry
Copy link
Member

JamesHenry commented Feb 26, 2017

Yes, please! That would be perfect. Looks great so far @soda0289

Copy link
Member

@JamesHenry JamesHenry left a 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

@soda0289 soda0289 force-pushed the add-constructor-tests branch from 9e9c69d to 8b41beb Compare February 26, 2017 23:25
@eslintbot
Copy link

LGTM

@soda0289
Copy link
Member Author

@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

@weirdpattern
Copy link
Contributor

LGTM, thank you @soda0289

@JamesHenry
Copy link
Member

Great, thanks!

@JamesHenry JamesHenry merged commit 69d2537 into eslint:master Feb 27, 2017
@soda0289 soda0289 deleted the add-constructor-tests branch May 23, 2017 13:26
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants