0
Answer

how to cover code in unit testing for DOM

Photo of Mohd Kashif

Mohd Kashif

6y
520
1
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