-
Notifications
You must be signed in to change notification settings - Fork 218
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 passing of content in request with file type body #1326
Allow passing of content in request with file type body #1326
Conversation
6b05594
to
398b771
Compare
398b771
to
36258a7
Compare
Codecov Report
❗ Your organization is not using the GitHub App Integration. As a result you may experience degraded service beginning May 15th. Please install the Github App Integration for your organization. Read more. @@ Coverage Diff @@
## develop #1326 +/- ##
=========================================
Coverage 100.00% 100.00%
=========================================
Files 37 37
Lines 2167 2164 -3
Branches 658 658
=========================================
- Hits 2167 2164 -3
Flags with carried forward coverage won't be shown. Click here to find out more.
📣 We’re building smart automated test selection to slash your CI/CD build times. Learn more |
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.
Good to go
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.
@dev-sharma-08 Can we add tests for cases where non-serialisable data is passed?
a55ea86
to
41e8f4f
Compare
41e8f4f
to
c2befcc
Compare
}, | ||
rBody = new RequestBody(definition); | ||
|
||
expect(rBody.toJSON()).to.eql(definition); |
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.
What would the result of serialisation of a ReadStream
be? Wouldn't it be unusable? Do we want to keep this? @codenirvana
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.
toJSON()
will have no effect on the readStream
. It will remain usable, I have checked this.
Regarding wether we want to keep it @codenirvana can share his opinion.
This is being done to accept buffer data in file body.