Skip to content

Stream support #54

@austinkelleher

Description

@austinkelleher

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

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions