2015
pluralsight
Bradley Braithwaite
2h 23m
English
This course will teach you ngMock Fundamentals for writing AngularJS unit tests.
1. Getting started
1.1. Course Introduction
1.2. Introduction to ngMock
1.3. Introduction to Jasmine
1.4. Introduction to Karma
1.5. Installing Karma
1.6. Using Karma with Multiple Browsers
1.7. Configuring Angular and ngMock
1.8. Libraries Overview
2. First Steps with ngMock’s Core Functions
2.1. Introduction
2.2. Defining the Movie Data Logic
2.3. Using the Module Function
2.4. Using the Inject Function
2.5. Creating the OMDB Module and Refactoring
2.6. Debugging with Dump
2.7. Summary
3. Unit Testing HTTP Interactions with ngMock
3.1. Introduction
3.2. Adding HTTP Functionality the OMDB Service
3.3. Introduction to the $httpBackend Service
3.4. Using the $httpBackend Service
3.5. Unit Testing $Resource with the $httpBackend
3.6. Test the $httpBackend Service with HTTP Headers
3.7. Summary
4. Unit Testing Controllers with ngMock
4.1. Introduction
4.2. Introduction to the $controller Service
4.3. Unit Testing a Controller
4.4. Unit Testing with Promises
4.5. Adding HTML to the Application
4.6. Summary
5. Unit Testing with Timeouts and Intervals
5.1. Introduction
5.2. Using ngMocks $timeout Service
5.3. Demo Using ngMocks $timeout Service
5.4. Using ngMocks $interval Service
5.5. Demo Using ngMocks $interval Service
5.6. Summary
6. Unit Testing Directives with $rootScope
6.1. Introduction
6.2. Unit Testing a Directive
6.3. Using ngMock’s $rootScope Service
6.4. Adding the Directive to the Movie Results
6.5. Summary
7. Unit Testing with Dates
7.1. Introduction
7.2. Unit Testing Dates in JavaScript
7.3. Using ngMock's TzDate Type
7.4. Unit Testing an Angular $filter
7.5. Summary
8. Unit Testing with Exceptions
8.1. Introduction
8.2. The $exceptionHandler Service
8.3. The $exceptionHandler Service - Demo
8.4. Summary
9. Unit Testing with Logging
9.1. Introduction
9.2. Introduction to the $log Service
9.3. Using the $log Service
9.4. Unit Testing $log in the Movie Application
9.5. Summary
10. Testing with ngMockE2E BackEnd
10.1. Introduction
10.2. Testing with the ngMockE2E Module
10.3. Using ngMockE2E's $httpBackEnd Service
10.4. Summary
https://pluralsight.com/
Download File Size:476.22 MB