In the previous blog post we created some basic unit tests for the AngularJS movies controller. As I mentioned there was one set of tests missing and that was around the controller doing HTTP requests to the WebAPI backend. In a unit test typically don’t want to do those test for real. First of all we don’t want to take a dependency on some external state and equally important we don’t want the overhead of those requests. Fortunately AngularJS makes it easy to fake those requests and test the controller bits in isolation. The $httpBackend service One of the … Continue reading Unit testing AngularJS HTTP requests in the RAW Stack
AngularJS from Maurice Beijer The slides of my AngularJS presentation for the DotNed user group can be downloaded from SlideShare. The demo code can be found here on GitHub. The session was recorded and a link to the recording will follow later. Enjoy!