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

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

6
  $ctrl.$onInit = () => {
8✔
7
    handleInputBooleanAttribute('required', $ctrl.required);
8✔
8
    handleInputBooleanAttribute('disabled', $ctrl.disabled);
8✔
9
  };
10

11
  $ctrl.onTextareaChange = () => {
8✔
12
    const { name, value } = $element.find('textarea')[0];
1✔
13
    return $ctrl.onChange && $ctrl.onChange({ name, value });
1✔
14
  };
15

16
  function handleInputBooleanAttribute(attrName, attrValue){
17
    if(attrValue)
16✔
18
      $element.find('textarea').attr(attrName, attrValue);
2✔
19
  }
20
}
21

22
controller.$inject = ['$element'];
34✔
23

24
export default {
25
  bindings: {
26
    name: '@',
27
    value: '=',
28
    required: '<',
29
    disabled: '<',
30
    onChange: '='
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