All files / lib/api consolestream.js

100% Statements 26/26
100% Branches 2/2
100% Functions 1/1
100% Lines 26/26

Press n or j to go to the next uncovered block, b, p or k for the previous block.

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 271x 1x 1x 1x 1x 1x 1x 1x 1x 1x 8x 8x 8x 8x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x  
"use strict";
import stream from "stream";
import util from "util";
 
/**
 * class ConsoleStream
 * Used for streaming Jenkins console output.
 */
class ConsoleStream {
  constructor() {
    stream.Stream.call(this);
    this.readable = true;
    this.writable = false;
  }
}
 
util.inherits(ConsoleStream, stream.Stream);
 
// ConsoleStream.prototype.readable = true;
// ConsoleStream.prototype.writable = false;
 
// const exports = {
//   ConsoleStream: ConsoleStream
// };
 
export { ConsoleStream as default };