I'm attempting to write some basic unit tests for a jquery plugin. However, I do not know how to write unit tests for functions that are tightly coupled with the DOM and sometimes run for a few dozen lines.
It is a simple interactive checklist:
The code is quite short (480 lines):
A sample function from the codebase that I am trying to write a test for:
Aucun commentaire:
Enregistrer un commentaire