• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

glorious-codes / glorious-demo / 971b12eb-089e-42e4-89d6-04e2d7329d1c

pending completion
971b12eb-089e-42e4-89d6-04e2d7329d1c

Pull #107

circleci

GitHub
build(deps): bump minimist from 1.2.5 to 1.2.6
Pull Request #107: build(deps): bump minimist from 1.2.5 to 1.2.6

62 of 62 branches covered (100.0%)

Branch coverage included in aggregate %.

273 of 273 relevant lines covered (100.0%)

10.96 hits per line

Source File
Press 'n' to go to next uncovered line, 'b' for previous

100.0
/src/scripts/components/terminal-response-line/terminal-response-line.js
1
import '@styles/terminal-response-line.styl';
2
import { TerminalLine } from '../terminal-line/terminal-line';
3
import domService from '../../services/dom/dom';
4
import template from './terminal-response-line.html';
5

6
export class TerminalResponseLine extends TerminalLine {
7
  constructor(){
8
    super();
5✔
9
    this.setContent(domService.parseHtml(template));
5✔
10
  }
11
  setText(text){
12
    const textContainer = this.element.querySelector('[data-terminal-response-line-text]');
4✔
13
    return domService.containsClosingHtmlTag(text) ?
4✔
14
      appendHtml(textContainer, domService.parseHtml(text)) :
15
      appendText(textContainer, text);
16
  }
17
}
18

19
function appendHtml(container, html){
20
  addElementCssClass(container, 'terminal-response-line-html-text');
2✔
21
  container.appendChild(html);
2✔
22
}
23

24
function appendText(container, text){
25
  addElementCssClass(container, 'terminal-response-line-plain-text');
2✔
26
  container.innerText = text;
2✔
27
}
28

29
function addElementCssClass(element, cssClass){
30
  element.classList.add(cssClass);
4✔
31
}
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2025 Coveralls, Inc