NYPD / ritsu.js

HTML form validation
MIT License
2 stars 0 forks source link

Clean up tests #91

Closed NYPD closed 6 years ago

NYPD commented 7 years ago

Test private functions directly rather than duplicating tests for each method just to test out private functionality.

NYPD commented 7 years ago

Actually I changed my mind, each method should test all their parameter calls according to the documentation. This will ensure nothing is missed accidentally in case a future method does not call the private functionality.

However, each test still needs to be cleaned up and some method tests are missing some parameter calls.

NYPD commented 6 years ago

Changed my mind again, _getSelectorAsElementArray should be tested on its own and removed during the build process