mirror of https://github.com/lukechilds/node.git
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
14 lines
356 B
14 lines
356 B
14 years ago
|
// This test ensures SourceStream.pipe(DestStream) returns DestStream
|
||
|
|
||
13 years ago
|
var common = require('../common');
|
||
14 years ago
|
var Stream = require('stream').Stream;
|
||
|
var assert = require('assert');
|
||
|
var util = require('util');
|
||
|
|
||
|
var sourceStream = new Stream();
|
||
|
var destStream = new Stream();
|
||
|
var result = sourceStream.pipe(destStream);
|
||
|
|
||
|
assert.strictEqual(result, destStream);
|
||
|
|