• 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/row/row.js
1
import template from './row.html';
2

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

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

10
  function buildCssClasses(offset){
11
    const cssClasses = ['pd-row'];
5✔
12
    if(isOffsetValid(offset))
5✔
13
      cssClasses.push(`pd-row-offset-${offset}`);
1✔
14
    return cssClasses.join(' ');
5✔
15
  }
16

17
  function isOffsetValid(value){
18
    const offset = parseInt(value);
5✔
19
    return offset >= 1 && offset <= 10;
5✔
20
  }
21

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

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