0
Answer

how to cover code in unit testing for DOM

Mohd Kashif

Mohd Kashif

5y
481
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