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

glorious-codes / glorious-pitsby-demo / 61661de0-c128-4dfd-91b2-2e820ab41a59

18 Nov 2023 09:40PM CUT coverage: 100.0%. Remained the same
61661de0-c128-4dfd-91b2-2e820ab41a59

push

circleci

rafaelcamargo
chore: update pitsby from 1.36.3 to 1.37.0

120 of 120 branches covered (100.0%)

Branch coverage included in aggregate %.

288 of 288 relevant lines covered (100.0%)

9.31 hits per line

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

100.0
/src/scripts/angular/components/field/field.js
1
import template from './field.html';
2

3
function controller($element, $timeout){
4
  const $ctrl = this;
5✔
5

6
  $ctrl.$onInit = () => {
5✔
7
    $timeout(() => setCssClasses(buildCssClasses()));
5✔
8
  };
9

10
  function buildCssClasses(){
11
    const cssClasses = ['pd-field'];
5✔
12
    if(containsRequiredChild())
5✔
13
      cssClasses.push('pd-field-required');
1✔
14
    return cssClasses.join(' ');
5✔
15
  }
16

17
  function containsRequiredChild(){
18
    return  $element[0].querySelector('[data-required="true"]');
5✔
19
  }
20

21
  function setCssClasses(cssClasses){
22
    $ctrl.cssClasses = cssClasses;
5✔
23
  }
24
}
25

26
controller.$inject = ['$element', '$timeout'];
34✔
27

28
export default {
29
  transclude: true,
30
  bindings: {
31
    label: '@'
32
  },
33
  controller,
34
  template
35
};
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