All files / src Simulate.js

80% Statements 8/10
50% Branches 6/12
100% Functions 0/0
80% Lines 8/10

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 15 16 17 18 19 20 21 22 23 24    7x 7x       7x 7x         1x 1x 1x     1x          
export default {
  click(elem) {
    Eif (elem) {
      Iif (elem.trigger) {
        elem.trigger('submit')
      }
 
      Eif (elem.click) {
        elem.click()
      }
    }
  },
  submit(elem) {
    Eif (elem) {
      Eif (elem.trigger) {
        elem.trigger('submit')
      }
 
      Iif (elem.submit) {
        elem.submit()
      }
    }
  }
}