AngularJS یکی از محبوب ترین فریمورک های ساخت اپلیکیشن های SPA می باشد.

در این آموزش کوتاه با نحوه تست سرویس های AngularJS آشنا می شوید.

این دوره آموزشی محصول موسسه Tutsplus است.

 

 توضیحات:

http://code.tutsplus.com/courses/testing-angular-services?utm_source=Tuts+&utm_medium=website&utm_campaign=relatedcourses&utm_content=sidebar&WT.mc_id=Tuts+_website_relatedcourses_sidebar
Tutsplus Testing Angular Services

Dan Wellman
0.2 hours



Unit testing is a key tool for ensuring the correctness of our software, and Angular apps are no exception! In fact, part of what makes Angular so amazing is that it's a framework written from the ground up with testing in mind. Angular services are easier to test than some other Angular components, such as controllers, but still different than unit testing regular JavaScript applications.
In this Coffee Break Course, Envato Tuts+ instructor Dan Wellman will show you how to take an existing Angular app and add tests for one of its custom services. We'll see how to inject the service and its dependencies for testing, and how to stub methods in those dependencies with Sinon.
This is part of a series of Coffee Break Courses on testing in Angular.


1.Testing Angular Services
1.1
Introduction
1.2
Testing Angular Services