Add spies to ensure demux handles keys correctly

This commit is contained in:
Jerry Kurian
2019-09-10 12:09:26 -04:00
parent 83ef6e9734
commit ee3d9b9ded
4 changed files with 102 additions and 7 deletions

View File

@@ -40,7 +40,6 @@ type AllStreams =
| NodeJS.WritableStream;
export class Compose extends Duplex {
public writable: boolean;
private first: AllStreams;
private last: AllStreams;
private streams: AllStreams[];

View File

@@ -16,7 +16,6 @@ export function map<T, R>(
const mapped = await mapper(chunk, encoding);
callback(null, mapped);
} catch (err) {
console.log("caught error", err.message);
callback(err);
}
},