How do I test JavaScript with Jasmine?
Jasmine is a prominent JavaScript behavior-driven development framework for unit testing JavaScript applications (with BDD, you write tests before developing actual code). It comes with tools for running automated tests on both synchronous and asynchronous programming. Now let’s focus on how to test Jasmine with JavaScript:
Start by downloading the latest version of Jasmine from the releases page. Then simply extract the zip file, preferably inside a folder in the project you want to test. For more deatils refre the blog