Mohd Kashif

Mohd Kashif

  • 856
  • 941
  • 222.5k

how to cover code in unit testing for DOM

Mar 26 2019 5:37 AM
Hi All,
 
Actually, I am trying the cover the code in unit testing using JEST framework.
 
In actual code, we are getting selected checkbox in checkallboxes and code for this: -
 
var checkallboxes = document.getElementsByName("rowSelectCheckBox");
 
I want to cover unit testing for above code.
 
how can I write unit test code in jest?
 
Thanks