Skip to content
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

turn mock request into a stream #169

Merged
merged 2 commits into from
Jun 4, 2018
Merged

turn mock request into a stream #169

merged 2 commits into from
Jun 4, 2018

Conversation

abacaphiliac
Copy link
Contributor

http.IncomingMessage extends stream.Readable extends NodeJS.ReadableStream extends NodeJS.EventEmitter.

a mock request that implements stream.Readable (which is-a events.EventEmitter) gets us a little closer to http.IncomingMessage than events.EventEmitter alone.

is there a downside to this approach?

…tream extends NodeJS.EventEmitter. a mock request that implements stream.Readable gets us a little closer to http.IncomingMessage than events.EventEmitter.
@eugef
Copy link
Owner

eugef commented Jun 4, 2018

@abacaphiliac thanks for your PR

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants