AngularJs Unit Testing Part 3 – Directives

This is blog post is a part of a series related AngularJs unit testing. AngularJs Unit Testing Part 1 – Controllers AngularJs Unit Testing Part 2 – Services with $httpBackend Directives are arguably the most import part of the AngularJs framework moreover, they are certainly the most complex and hardest to grasp. That’s why, I Read more about AngularJs Unit Testing Part 3 – Directives[…]

AngularJs Unit Testing Part 2 – Services with $httpBackend

In my previous post I wrote about how we could test a controller that injects a service that makes an HTTP call to API to return a list of images. I showed how to mock the service but I did not show how to test that service itself. But for various reason, we still do Read more about AngularJs Unit Testing Part 2 – Services with $httpBackend[…]

AngularJs Unit Testing Part 1 – Controllers

As a developer coming from an ASP.Net, C# background, I had come to appreciate the ability to unit test my code. I find that I am not all that great a programmer, and often times the unit tests I write have brought to surface a bug that I would have introduced to production had I Read more about AngularJs Unit Testing Part 1 – Controllers[…]

The proper format and structure of a unit test at Campus

Unit tests can be formatted and structured in a wide variety of ways. At Campus, we have been structuring our unit tests in a similar manner in order to promote consistency in our code and to make it easier to create new tests. By simply following the basic structure explained below, you can create unit tests that will be consistent with other Read more about The proper format and structure of a unit test at Campus[…]

Skip to toolbar