First of all, and most IMPORTANT:
Unit testing is similar in all other languages.
You should keep in mind the basic features of writing testable code.
Note. There is a good Pluralsight video (what are the costs) from Misko Hevery on writing test code).
First: watch this youtube from Vojta Jina - Installing and starting karma , the person who wrote karma.
Second: watch this 1 hour tutorial, which I highly recommend: An Introduction to AngularJS Device Testing Jim Levin
Once you're done, you can test each piece of code in your Angular project.
Good luck.
source share