nathanoehlman / mockstream

Mock stream is a really simply utility stream for generating data for test streams
1 stars 1 forks source link

Mock Stream with specific string data. #2

Open benastan opened 11 years ago

benastan commented 11 years ago

Hey Nathan, thanks for building this! I was searching for something like this and this was the first I found that worked perfectly out of the box.

I'm using your mockstream library with nock, and I wanted the ability to pass in a streamString option, and then retrieve that stream in event handlers. I wrote the code for this in this pull request. What do you think?

benastan commented 11 years ago

Alternatively, I threw up this repo specifically designed to work with nock. So if you don't want to merge this, that's cool too.