-
Notifications
You must be signed in to change notification settings - Fork 40
Open
Description
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);Metadata
Metadata
Assignees
Labels
No labels