When we developing simple JS app / website we don't even need to test something. If everything is simple - there is no reason to make it hard.
The are a lot of ways to test different cases:
- console.time() method of testing some code part performance;
console.time('timerName'); /* your code */ console.timeEnd('timerName');