stream-storage-chai-http
v0.0.2
Published
![Version](https://img.shields.io/badge/version-0.0.2-green.svg) ![npm](https://img.shields.io/npm/dy/stream-storage-chai-http)
Downloads
10
Maintainers
Readme
stream-storage-chai-http
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
- dmitriym09 [email protected]
dev
test
For run test:
npm run test
versions
- 0.0.1 - init
- 0.0.2 - tags