Mohd Kashif

Mohd Kashif

  • 851
  • 941
  • 224.1k

Write unit testing in jest framework for below code

Mar 29 2019 2:06 AM
I am trying to write unit testing in jest for below code :-
 
var checkallboxes = document.getElementsByName("rowSelectCheckBox");
for (var i = 0, n = checkallboxes.length; i < n; i++)
{ checkallboxes[i].checked = true;
}
 
How to write test code in jest?