We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
I want to mock a superagent request that creates pipes the data to a write stream e.g.
const targz = require('tar.gz2'); const request = require('superagent'); const tarball = 'some-file.tgz'; const read = request.get(tarball); const write = targz().createWriteStream(dir); const stream = read.pipe(write).on('finish', doSomething);
The text was updated successfully, but these errors were encountered:
Unfortunately superagent-mock doesn't support this feature for now... But if you want, you can propose a PR 😉
Sorry, something went wrong.
It doesn't look like too hard. It is only a node feature. https://github.com/visionmedia/superagent/blob/master/lib/node/index.js
No branches or pull requests
I want to mock a superagent request that creates pipes the data to a write stream e.g.
The text was updated successfully, but these errors were encountered: