Naval Pilgrim's Mayflower

    stream-storage-chai-http

    0.0.2 • Public • Published

    stream-storage-chai-http

    Version npm

    Simple stream for using with chai-http.

    npm install stream-storage-chai-http -D
    

    Usage

    const { StreamStorage } = require('stream-storage');
    const streamStorage = new StreamStorage();
     
    const server = require('./server');
    const requester = chai.request(server).keepOpen();
     
    streamStorage.put('HI')
        .then(() => {
            requester.post('/')
                .attach('file', streamStorage, 'test.txt')
                .end((err, res) => {
                    streamStorage.destroy();
                    //...
                });
        });

    Contributors

    dev

    test

    For run test:

    npm run test

    versions

    • 0.0.1 - init
    • 0.0.2 - tags

    Install

    npm i stream-storage-chai-http

    DownloadsWeekly Downloads

    2

    Version

    0.0.2

    License

    ISC

    Unpacked Size

    4.2 kB

    Total Files

    6

    Last publish

    Collaborators

    • dmitriym09