All files / addon/components/bootstrap -checkbox.js

66.67% Statements 2/3
50% Branches 1/2
100% Functions 1/1
66.67% Lines 2/3

Press n or j to go to the next uncovered block, b, p or k for the previous block.

1 2 3 4 5 6 7 8 9 10 11 12 13 14            1x   1x          
import Checkbox from '@ember/component/checkbox';
 
export default Checkbox.extend({
  classNames: ['form-check-input'],
 
  click() {
    const onClick = this.get('onClick');
 
    Iif (onClick) {
      onClick(!this.get('checked'), this.get('checked'), ...arguments);
    }
  }
});