Skip to content

Glossary: Angular Beyond the Basics

Spec file

Also written: spec, describe, it, expect, TestBed, HttpTestingController

A file that holds tests: `describe` names a group, `it` one test and `expect(...).toBe(...)` checks a value. `TestBed` builds services, and `HttpTestingController` fakes the server with `expectOne` and `flush`.

Where the book teaches it

Related terms

ng test