all files / src/ underlinedcell.js

100% Statements 6/6
100% Branches 0/0
100% Functions 3/3
100% Lines 6/6
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17     19×                  
const TextCell = require("./textcell.js");
class UnderlinedCell extends TextCell {
  constructor(text) {
    super(text);
  }
 
  get minHeight() {
    let result = super.minHeight;
    return super.minHeight + 1;
  }
  draw(width, height) {
    return super.draw(width, height - 1).concat([super.repeat("-", width)]);
  }
}
 
module.exports = UnderlinedCell;