-
Notifications
You must be signed in to change notification settings - Fork 360
Added ES6 feature support to NodeJS-Request codegen #180
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
Conversation
@shreys7 Have updated as you said, once this one gets accepted for |
@umeshp7 Can you please review this? |
We'll need an extra set of newman tests, with this option enabled true. We need to make sure the snippet generated is runnable. |
@umeshp7 I have added a new block inside the main mocha suite with |
@sastava007 Merging this, you can start working on |
What it does
It allows the user to generate the code snippet for NodeJS Request in ES6 format.
This is in response to issue #115 requested by one of the users.
Changes I made
Registered a new parameter ES6_enabled in
options()
which allows the user to toggle between whether codegen generates snippet with ES6 features or not.By default ES6_enabled is set to
false
Also added the new created option parameter in
structure.test.js
file to register it as a valid option id.Added unit tests to verify the generated snippets.
Follow Up
This PR is first in the series of upcoming PRs which will add the feature of generating code snippet in ES6 notation with NodeJS.