When working inside your test suite, it’s often the case that you don’t want to run all of your tests. Mocha has a great mechanism that allows you to easily specify what exactly you want run. This can help make your processes such as TDD faster and more focused.
When you’re trying to test your authenticated URLs via supertest, there are just a couple things you’ll need to do that aren’t spelled out in the docs.
When you test your AngularJs code, you need to explicitly inject the services that your controllers and modules require. It has its own special syntax. It requires mocking. You’ll see a slightly different syntax than you may have expected.
window (eg, if you use jQuery) or that manipulates the DOM (which could vary browser to browser).