Overview
Save Big on Coursera Plus. 7,000+ courses at $160 off. Limited Time Only!
In this 1-hour long project-based course, you will learn how to generate a new Angular project, create components and write unit tests in the spec file. You will learn how to bootstrap your tests, and will test the presence of text and the action of clicking a button. You will test the presence of HTML attributes, and the passage of data from a parent component to a child component.
Note: This course works best for learners who are based in the North America region. We’re currently working on providing the same experience in other regions.
Syllabus
- Project Overview
- Ever wondered what the “spec” file is in your Angular components? That’s the component unit testing code that is written using Jasmine, the JavaScript testing framework. This project will show you how Jasmine works, and how testing is actually run using Karma. You will generate a new Angular project, create components and write unit tests in the spec file. You will learn how to bootstrap your tests, and will test the presence of text and the action of clicking a button. You will test the presence of HTML attributes, and the passage of data from a parent component to a child component.
Taught by
Sherif A. Tawfik Abbas