mirror of
https://github.com/zhigang1992/DefinitelyTyped.git
synced 2026-05-07 04:50:54 +08:00
Added zlib stream methods/properties
This commit is contained in:
@@ -798,13 +798,16 @@ function stream_readable_pipe_test() {
|
||||
var z = zlib.createGzip({ finishFlush: zlib.constants.Z_FINISH });
|
||||
var w = fs.createWriteStream('file.txt.gz');
|
||||
|
||||
assert(typeof z.bytesRead === 'number');
|
||||
assert(typeof r.bytesRead === 'number');
|
||||
assert(typeof r.path === 'string');
|
||||
assert(rs.path instanceof Buffer);
|
||||
|
||||
r.pipe(z).pipe(w);
|
||||
|
||||
z.flush();
|
||||
r.close();
|
||||
z.close();
|
||||
rs.close();
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user