The copyright and license notice is already in the LICENSE file. There is no justifiable reason to also require that it be included in every file, since the individual files are not individually distributed except as part of the entire package.
28 lines
513 B
JavaScript
28 lines
513 B
JavaScript
var common = require('../common');
|
|
var stream = require('stream');
|
|
var assert = require('assert');
|
|
var util = require('util');
|
|
|
|
function Writable() {
|
|
this.writable = true;
|
|
stream.Stream.call(this);
|
|
}
|
|
util.inherits(Writable, stream.Stream);
|
|
|
|
function Readable() {
|
|
this.readable = true;
|
|
stream.Stream.call(this);
|
|
}
|
|
util.inherits(Readable, stream.Stream);
|
|
|
|
var passed = false;
|
|
|
|
var w = new Writable();
|
|
w.on('pipe', function(src) {
|
|
passed = true;
|
|
});
|
|
|
|
var r = new Readable();
|
|
r.pipe(w);
|
|
|
|
assert.ok(passed);
|