ignore-writable

1.0.0 • Public • Published

ignore-writable

A 'passthrough' writable stream, which simply ignores its input. (for mocking)

Example

var sinon = require('sinon'),
    Canoe = require('canoe'),
    IgnoreWritable = require('ignore-writable');

var canoe = new Canoe(/* s3 instance, somehow */)

var canoeStub = sinon.stub(canoe, 'createWriteStream', function() {
  return new IgnoreWritable();
});

License

Copyright (c) 2014 Pedro Tacla Yamada. Licensed under the MIT license. Please refer to the LICENSE file for more info.

Package Sidebar

Install

npm i ignore-writable

Weekly Downloads

0

Version

1.0.0

License

MIT

Last publish

Collaborators

  • yamadapc