• 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/cursor/cursor.js
1
import '@styles/cursor.styl';
2
import domService from '../../services/dom/dom';
3
import typeService from '../../services/type/type';
4
import template from './cursor.html';
5

6
const ACTIVE_CSS_CLASS = 'cursor-active';
9✔
7

8
export class Cursor {
9
  constructor(){
10
    this.element = domService.parseHtml(template);
3✔
11
  }
12
  write(text, onComplete){
13
    typeService.type(this.element, text, onComplete);
1✔
14
  }
15
  setActive(){
16
    handleCssClass(this.element, 'add', ACTIVE_CSS_CLASS);
1✔
17
  }
18
  setInactive(){
19
    handleCssClass(this.element, 'remove', ACTIVE_CSS_CLASS);
1✔
20
  }
21
}
22

23
function handleCssClass(cursorElement, action, cssClass){
24
  cursorElement.classList[action](cssClass);
2✔
25
}
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