@boris-turner/amphora-search
Version:
Making it easier to use Elastic Search with Amphora
21 lines (15 loc) • 320 B
JavaScript
;
const stream = require('stream');
function createRes() {
const writable = stream.Writable();
Object.assign(writable, {
send: jest.fn(),
type: jest.fn(),
redirect: jest.fn(),
_write: (chunk, enc, next) => {
next();
}
});
return writable;
}
module.exports = createRes;