I haven't done extensive unit testing in java script. But the principles remain fairly same in all the languages.
Properties of a good unit test would be
Runs quickly and provides nearly immediate feedback
Doesn't have side effects, like charging a credit card, or modifying a database or event publishing an event
What needs to be tested in your case