This is a noob question.
I am going to write a string manipulation function, which has nothing to do with web browsers. Now I would like to test that function.
I know how to do that in Java with JUnit
: I write a few test cases and make JUnit
run the tests cases manually or automatically (during the build).
In case of Java Script
I can write a few test functions, prepare an HTML page, which invokes these functions, and load this page in a browser.
Is it really the only option to do unit testing for Java Script
?