Forums - C# Corner

Forum guidelines
Mohd Kashif

Mohd Kashif

  • 1.4k
  • 429
  • 11.5k

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?