Description
In this course, you will :
- Learn about function testing.
- Learn about class testing.
- Create mocking dependencies.
- Make use of Jasmine matchers.
- Use Asynchronous code testing.
- Learn Node.js and how to test browser API-dependent code.
Syllabus :
1. Testing JavaScript with Jasmine
- Unit Testing Basics
- Use Jasmine to Run Unit Tests
- Unit Test a Function
- Test a Function Throwing Error
- Use Jasmine Matchers
- Test a Function Depending on Other Functions
- Use Jasmine to Test Functions in Browser
- Test Functions Depending on a Browser API
- Arrange Act Assert
- How to Test Functions Depending on Date
- Perform an Action Before and After Each Test
- How to Test Classes
2. Testing Asynchronous Code
- Test Promises Using Async and Await
- Test the Hidden Promise Using Done or Await
- Test Single-page Application Components
- Test Asynchronous Node.js API Logic using ExpectAsync
3. Debugging Jasmine Tests
- Debug Node.js Unit Tests
- Debug Browser Javascript Tests